home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / contrib / maple / mtnarticle.tex < prev    next >
LaTeX Document  |  1995-03-10  |  21.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 6f 63 75 6d 65 6e | 74 63 6c 61 73 73 5b 31 |\documen|tclass[1|
|00000010| 31 70 74 2c 64 76 69 70 | 73 5d 7b 6d 74 6e 7d 0a |1pt,dvip|s]{mtn}.|
|00000020| 5c 75 73 65 70 61 63 6b | 61 67 65 7b 70 61 6c 61 |\usepack|age{pala|
|00000030| 74 69 6e 6f 7d 0a 5c 62 | 65 67 69 6e 7b 64 6f 63 |tino}.\b|egin{doc|
|00000040| 75 6d 65 6e 74 7d 0a 5c | 48 45 41 44 49 4e 47 7b |ument}.\|HEADING{|
|00000050| 54 68 65 20 44 20 4f 70 | 65 72 61 74 6f 72 20 61 |The D Op|erator a|
|00000060| 6e 64 20 41 6c 67 6f 72 | 69 74 68 6d 69 63 20 5c |nd Algor|ithmic \|
|00000070| 5c 20 44 69 66 66 65 72 | 65 6e 74 69 61 74 69 6f |\ Differ|entiatio|
|00000080| 6e 7d 7b 4d 69 63 68 61 | 65 6c 20 4d 6f 6e 61 67 |n}{Micha|el Monag|
|00000090| 61 6e 0a 5c 66 6f 6f 74 | 6e 6f 74 65 7b 49 6e 66 |an.\foot|note{Inf|
|000000a0| 6f 72 6d 61 74 69 6b 20 | 45 2e 54 2e 48 2e 2c 20 |ormatik |E.T.H., |
|000000b0| 5a 5c 22 7b 75 7d 72 69 | 63 68 2c 20 53 77 69 74 |Z\"{u}ri|ch, Swit|
|000000c0| 7a 65 72 6c 61 6e 64 2e | 20 6d 6f 6e 61 67 61 6e |zerland.| monagan|
|000000d0| 40 69 6e 66 2e 65 74 68 | 7a 2e 63 68 7d 0a 61 6e |@inf.eth|z.ch}.an|
|000000e0| 64 20 4a 2e 20 53 2e 20 | 44 65 76 69 74 74 5c 66 |d J. S. |Devitt\f|
|000000f0| 6f 6f 74 6e 6f 74 65 7b | 46 61 63 75 6c 74 79 20 |ootnote{|Faculty |
|00000100| 20 6f 66 20 4d 61 74 68 | 65 6d 61 74 69 63 73 2c | of Math|ematics,|
|00000110| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 57 | Univers|ity of W|
|00000120| 61 74 65 72 6c 6f 6f 0a | 2c 20 43 61 6e 61 64 61 |aterloo.|, Canada|
|00000130| 2c 20 6a 73 64 65 76 69 | 74 74 40 64 61 69 73 79 |, jsdevi|tt@daisy|
|00000140| 2e 75 77 61 74 65 72 6c | 6f 6f 2e 63 61 7d 0a 7d |.uwaterl|oo.ca}.}|
|00000150| 7b 44 20 4f 70 65 72 61 | 74 6f 72 7d 0a 0a 5c 68 |{D Opera|tor}..\h|
|00000160| 65 61 64 69 6e 67 7b 49 | 6e 74 72 6f 64 75 63 74 |eading{I|ntroduct|
|00000170| 69 6f 6e 7d 0a 0a 49 6e | 20 74 68 69 73 20 61 72 |ion}..In| this ar|
|00000180| 74 69 63 6c 65 20 77 65 | 20 77 6f 75 6c 64 20 6c |ticle we| would l|
|00000190| 69 6b 65 20 74 6f 20 69 | 6e 66 6f 72 6d 20 6f 75 |ike to i|nform ou|
|000001a0| 72 20 72 65 61 64 65 72 | 73 20 61 6e 64 20 75 73 |r reader|s and us|
|000001b0| 65 72 73 20 61 62 6f 75 | 74 0a 74 68 65 20 64 65 |ers abou|t.the de|
|000001c0| 76 65 6c 6f 70 6d 65 6e | 74 20 6f 66 20 74 68 65 |velopmen|t of the|
|000001d0| 20 5c 6d 65 78 70 72 7b | 44 7d 20 6f 70 65 72 61 | \mexpr{|D} opera|
|000001e0| 74 6f 72 20 69 6e 20 4d | 61 70 6c 65 2e 0a 41 73 |tor in M|aple..As|
|000001f0| 20 77 69 74 68 20 6d 61 | 6e 79 20 6d 61 6a 6f 72 | with ma|ny major|
|00000200| 20 74 61 73 6b 73 20 69 | 6e 20 73 79 73 74 65 6d | tasks i|n system|
|00000210| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 2c 20 67 65 | develop|ment, ge|
|00000220| 74 74 69 6e 67 20 73 6f | 6d 65 74 68 69 6e 67 20 |tting so|mething |
|00000230| 6c 69 6b 65 0a 74 68 69 | 73 20 6e 69 63 65 6c 79 |like.thi|s nicely|
|00000240| 20 69 6e 74 65 67 72 61 | 74 65 64 20 69 6e 74 6f | integra|ted into|
|00000250| 20 61 20 73 79 73 74 65 | 6d 2c 20 61 6e 64 20 77 | a syste|m, and w|
|00000260| 6f 72 6b 69 6e 67 20 63 | 6f 72 72 65 63 74 6c 79 |orking c|orrectly|
|00000270| 2c 0a 6e 6f 74 61 74 69 | 6f 6e 61 6c 6c 79 20 63 |,.notati|onally c|
|00000280| 6f 72 72 65 63 74 2c 20 | 61 6e 64 20 6d 61 6b 69 |orrect, |and maki|
|00000290| 6e 67 20 69 74 20 65 61 | 73 79 20 74 6f 20 75 73 |ng it ea|sy to us|
|000002a0| 65 2c 20 72 65 71 75 69 | 72 65 73 20 74 68 65 20 |e, requi|res the |
|000002b0| 64 65 73 69 67 6e 0a 6f | 66 20 6e 65 77 20 66 61 |design.o|f new fa|
|000002c0| 63 69 6c 69 74 69 65 73 | 20 61 6e 64 20 63 68 61 |cilities| and cha|
|000002d0| 6e 67 65 73 20 74 6f 20 | 6d 61 6e 79 20 70 61 72 |nges to |many par|
|000002e0| 74 73 20 6f 66 20 74 68 | 65 20 73 79 73 74 65 6d |ts of th|e system|
|000002f0| 2e 0a 0a 41 6c 74 68 6f | 75 67 68 20 60 60 64 69 |...Altho|ugh ``di|
|00000300| 66 66 65 72 65 6e 74 69 | 61 74 69 6f 6e 27 27 20 |fferenti|ation'' |
|00000310| 69 73 20 6f 66 74 65 6e | 20 72 65 67 61 72 64 65 |is often| regarde|
|00000320| 64 20 61 73 20 61 0a 72 | 65 6c 61 74 69 76 65 6c |d as a.r|elativel|
|00000330| 79 20 73 69 6d 70 6c 65 | 20 74 61 73 6b 20 66 6f |y simple| task fo|
|00000340| 72 20 61 20 63 6f 6d 70 | 75 74 65 72 20 61 6c 67 |r a comp|uter alg|
|00000350| 65 62 72 61 20 73 79 73 | 74 65 6d 2c 20 69 74 20 |ebra sys|tem, it |
|00000360| 74 75 72 6e 73 0a 6f 75 | 74 20 74 68 61 74 20 74 |turns.ou|t that t|
|00000370| 68 69 73 20 69 73 20 6e | 6f 74 20 61 63 74 75 61 |his is n|ot actua|
|00000380| 6c 6c 79 20 74 68 65 20 | 63 61 73 65 2e 0a 41 20 |lly the |case..A |
|00000390| 70 61 70 65 72 20 62 79 | 20 53 74 61 6e 6c 79 20 |paper by| Stanly |
|000003a0| 53 74 65 69 6e 62 65 72 | 67 20 61 6e 64 20 4d 69 |Steinber|g and Mi|
|000003b0| 63 68 61 65 6c 20 57 65 | 73 74 65 72 20 7b 5c 63 |chael We|ster {\c|
|000003c0| 69 74 65 20 7b 4d 55 43 | 38 34 7d 7d 20 70 72 65 |ite {MUC|84}} pre|
|000003d0| 73 65 6e 74 65 64 0a 61 | 74 20 74 68 65 20 31 39 |sented.a|t the 19|
|000003e0| 38 34 20 4d 61 63 73 79 | 6d 61 20 55 73 65 72 73 |84 Macsy|ma Users|
|000003f0| 20 43 6f 6e 66 65 72 65 | 6e 63 65 20 70 6f 69 6e | Confere|nce poin|
|00000400| 74 65 64 20 6f 75 74 20 | 70 72 6f 62 6c 65 6d 73 |ted out |problems|
|00000410| 20 77 69 74 68 0a 74 68 | 65 20 64 69 66 66 65 72 | with.th|e differ|
|00000420| 65 6e 74 69 61 74 69 6f | 6e 20 66 61 63 69 6c 69 |entiatio|n facili|
|00000430| 74 79 20 69 6e 20 74 68 | 65 20 63 6f 6d 70 75 74 |ty in th|e comput|
|00000440| 65 72 20 61 6c 67 65 62 | 72 61 20 73 79 73 74 65 |er algeb|ra syste|
|00000450| 6d 73 20 61 76 61 69 6c | 61 62 6c 65 0a 61 74 20 |ms avail|able.at |
|00000460| 74 68 61 74 20 74 69 6d | 65 2e 20 20 49 6e 20 70 |that tim|e. In p|
|00000470| 61 72 74 69 63 75 6c 61 | 72 2c 20 4d 61 70 6c 65 |articula|r, Maple|
|00000480| 20 61 6e 64 20 6f 74 68 | 65 72 20 73 79 73 74 65 | and oth|er syste|
|00000490| 6d 73 20 63 6f 75 6c 64 | 20 6e 6f 74 20 64 69 73 |ms could| not dis|
|000004a0| 74 69 6e 67 75 69 73 68 | 0a 63 6f 72 72 65 63 74 |tinguish|.correct|
|000004b0| 6c 79 20 62 65 74 77 65 | 65 6e 20 74 6f 74 61 6c |ly betwe|en total|
|000004c0| 20 61 6e 64 20 70 61 72 | 74 69 61 6c 20 64 65 72 | and par|tial der|
|000004d0| 69 76 61 74 69 76 65 73 | 2e 0a 0a 4f 70 65 72 61 |ivatives|...Opera|
|000004e0| 74 6f 72 73 20 77 65 72 | 65 20 66 69 72 73 74 20 |tors wer|e first |
|000004f0| 69 6e 74 72 6f 64 75 63 | 65 64 20 69 6e 74 6f 20 |introduc|ed into |
|00000500| 4d 61 70 6c 65 20 69 6e | 20 76 65 72 73 69 6f 6e |Maple in| version|
|00000510| 20 34 2e 32 0a 62 79 20 | 47 61 73 74 6f 6e 20 47 | 4.2.by |Gaston G|
|00000520| 6f 6e 6e 65 74 20 7b 5c | 63 69 74 65 20 7b 4f 50 |onnet {\|cite {OP|
|00000530| 45 52 41 54 4f 52 53 7d | 7d 2e 20 20 54 68 65 20 |ERATORS}|}. The |
|00000540| 61 64 64 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |addition| of the |
|00000550| 5c 6d 65 78 70 72 7b 44 | 7d 20 6f 70 65 72 61 74 |\mexpr{D|} operat|
|00000560| 6f 72 0a 61 64 64 72 65 | 73 73 65 64 20 74 68 65 |or.addre|ssed the|
|00000570| 20 64 69 73 74 69 6e 63 | 74 69 6f 6e 20 6f 66 20 | distinc|tion of |
|00000580| 74 6f 74 61 6c 20 61 6e | 64 20 70 61 72 74 69 61 |total an|d partia|
|00000590| 6c 20 64 65 72 69 76 61 | 74 69 76 65 73 2c 20 61 |l deriva|tives, a|
|000005a0| 6e 64 20 61 6c 73 6f 0a | 61 20 72 65 70 72 65 73 |nd also.|a repres|
|000005b0| 65 6e 74 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |entation| of the |
|000005c0| 64 65 72 69 76 61 74 69 | 76 65 20 6f 66 20 61 20 |derivati|ve of a |
|000005d0| 66 75 6e 63 74 69 6f 6e | 20 65 76 61 6c 75 61 74 |function| evaluat|
|000005e0| 65 64 20 61 74 20 61 0a | 70 6f 69 6e 74 20 28 66 |ed at a.|point (f|
|000005f0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 24 79 27 28 |or examp|le, $y'(|
|00000600| 30 29 24 20 62 79 20 5c | 6d 65 78 70 72 7b 44 28 |0)$ by \|mexpr{D(|
|00000610| 79 29 28 30 29 7d 29 2e | 20 20 0a 50 61 72 74 69 |y)(0)}).| .Parti|
|00000620| 61 6c 20 64 65 72 69 76 | 61 74 69 76 65 73 20 61 |al deriv|atives a|
|00000630| 6e 64 20 74 68 65 20 61 | 62 69 6c 69 74 79 20 74 |nd the a|bility t|
|00000640| 6f 0a 61 70 70 6c 79 20 | 74 68 65 20 63 68 61 69 |o.apply |the chai|
|00000650| 6e 20 72 75 6c 65 20 74 | 6f 20 61 6e 20 75 6e 6b |n rule t|o an unk|
|00000660| 6e 6f 77 6e 20 66 75 6e | 63 74 69 6f 6e 20 77 65 |nown fun|ction we|
|00000670| 72 65 20 61 64 64 65 64 | 20 69 6e 20 4d 61 70 6c |re added| in Mapl|
|00000680| 65 20 56 2e 0a 50 72 65 | 73 65 6e 74 6c 79 20 74 |e V..Pre|sently t|
|00000690| 68 65 20 5c 6d 65 78 70 | 72 7b 44 7d 20 6f 70 65 |he \mexp|r{D} ope|
|000006a0| 72 61 74 6f 72 20 69 73 | 20 62 65 69 6e 67 20 65 |rator is| being e|
|000006b0| 78 74 65 6e 64 65 64 20 | 74 6f 20 61 64 64 72 65 |xtended |to addre|
|000006c0| 73 73 20 74 68 65 0a 70 | 72 6f 62 6c 65 6d 20 6f |ss the.p|roblem o|
|000006d0| 66 20 61 6c 67 6f 72 69 | 74 68 6d 69 63 20 64 69 |f algori|thmic di|
|000006e0| 66 66 65 72 65 6e 74 69 | 61 74 69 6f 6e 2c 20 74 |fferenti|ation, t|
|000006f0| 68 61 74 20 69 73 2c 20 | 74 6f 20 64 69 66 66 65 |hat is, |to diffe|
|00000700| 72 65 6e 74 69 61 74 65 | 0a 4d 61 70 6c 65 20 70 |rentiate|.Maple p|
|00000710| 72 6f 63 65 64 75 72 65 | 73 2e 0a 0a 49 6e 20 74 |rocedure|s...In t|
|00000720| 68 69 73 20 61 72 74 69 | 63 6c 65 20 77 65 20 66 |his arti|cle we f|
|00000730| 6f 6c 6c 6f 77 20 74 68 | 65 20 64 65 76 65 6c 6f |ollow th|e develo|
|00000740| 70 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 5c 6d 65 |pment of| the \me|
|00000750| 78 70 72 7b 44 7d 20 6f | 70 65 72 61 74 6f 72 0a |xpr{D} o|perator.|
|00000760| 62 79 20 77 61 79 20 6f | 66 20 65 78 61 6d 70 6c |by way o|f exampl|
|00000770| 65 73 20 64 69 73 63 75 | 73 73 69 6e 67 20 73 6f |es discu|ssing so|
|00000780| 6d 65 20 6f 66 20 64 65 | 74 61 69 6c 73 20 61 6e |me of de|tails an|
|00000790| 64 20 73 79 73 74 65 6d | 20 64 65 73 69 67 6e 0a |d system| design.|
|000007a0| 69 73 73 75 65 73 20 61 | 73 20 77 65 20 67 6f 2e |issues a|s we go.|
|000007b0| 0a 0a 5c 68 65 61 64 69 | 6e 67 7b 46 75 6e 63 74 |..\headi|ng{Funct|
|000007c0| 69 6f 6e 73 20 2d 2d 20 | 45 78 70 72 65 73 73 69 |ions -- |Expressi|
|000007d0| 6f 6e 73 20 6f 72 20 4d | 61 70 70 69 6e 67 73 3f |ons or M|appings?|
|000007e0| 7d 0a 0a 55 73 65 72 73 | 20 77 69 6c 6c 20 66 69 |}..Users| will fi|
|000007f0| 6e 64 20 74 77 6f 20 66 | 61 63 69 6c 69 74 69 65 |nd two f|acilitie|
|00000800| 73 20 66 6f 72 20 64 69 | 66 66 65 72 65 6e 74 69 |s for di|fferenti|
|00000810| 61 74 69 6f 6e 20 69 6e | 20 4d 61 70 6c 65 2c 0a |ation in| Maple,.|
|00000820| 74 68 65 20 5c 6d 65 78 | 70 72 7b 64 69 66 66 7d |the \mex|pr{diff}|
|00000830| 20 70 72 6f 63 65 64 75 | 72 65 2c 20 61 6e 64 20 | procedu|re, and |
|00000840| 74 68 65 20 5c 6d 65 78 | 70 72 7b 44 7d 20 70 72 |the \mex|pr{D} pr|
|00000850| 6f 63 65 64 75 72 65 2e | 0a 0a 54 68 65 20 5c 6d |ocedure.|..The \m|
|00000860| 65 78 70 72 7b 64 69 66 | 66 7d 20 70 72 6f 63 65 |expr{dif|f} proce|
|00000870| 64 75 72 65 20 74 61 6b | 65 73 20 61 73 20 69 6e |dure tak|es as in|
|00000880| 70 75 74 20 77 68 61 74 | 20 4d 61 70 6c 65 20 63 |put what| Maple c|
|00000890| 61 6c 6c 73 0a 61 6e 20 | 7b 5c 65 6d 20 65 78 70 |alls.an |{\em exp|
|000008a0| 72 65 73 73 69 6f 6e 7d | 20 6f 72 20 61 20 7b 5c |ression}| or a {\|
|000008b0| 65 6d 20 66 6f 72 6d 75 | 6c 61 7d 20 77 68 69 63 |em formu|la} whic|
|000008c0| 68 20 69 73 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |h is a f|unction |
|000008d0| 6f 66 0a 7a 65 72 6f 20 | 6f 66 20 6d 6f 72 65 20 |of.zero |of more |
|000008e0| 76 61 72 69 61 62 6c 65 | 73 20 28 24 78 5f 31 2c |variable|s ($x_1,|
|000008f0| 20 78 5f 32 2c 20 5c 6c | 64 6f 74 73 20 78 5f 6e | x_2, \l|dots x_n|
|00000900| 24 29 20 77 68 69 63 68 | 20 61 70 70 65 61 72 20 |$) which| appear |
|00000910| 65 78 70 6c 69 63 69 74 | 6c 79 0a 69 6e 20 74 68 |explicit|ly.in th|
|00000920| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 0a 49 74 |e expres|sion..It|
|00000930| 20 63 6f 6d 70 75 74 65 | 73 20 74 68 65 20 70 61 | compute|s the pa|
|00000940| 72 74 69 61 6c 20 64 65 | 72 69 76 61 74 69 76 65 |rtial de|rivative|
|00000950| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 75 6c 61 20 | of the |formula |
|00000960| 77 69 74 68 20 72 65 73 | 70 65 63 74 20 74 6f 0a |with res|pect to.|
|00000970| 61 20 67 69 76 65 6e 20 | 76 61 72 69 61 62 6c 65 |a given |variable|
|00000980| 2e 0a 0a 54 68 65 20 5c | 6d 65 78 70 72 7b 44 7d |...The \|mexpr{D}|
|00000990| 20 70 72 6f 63 65 64 75 | 72 65 20 69 6e 20 4d 61 | procedu|re in Ma|
|000009a0| 70 6c 65 20 28 6f 66 74 | 65 6e 20 63 61 6c 6c 65 |ple (oft|en calle|
|000009b0| 64 20 74 68 65 0a 5c 6d | 65 78 70 72 7b 44 7d 20 |d the.\m|expr{D} |
|000009c0| 6f 70 65 72 61 74 6f 72 | 29 20 74 61 6b 65 73 20 |operator|) takes |
|000009d0| 61 73 20 69 6e 70 75 74 | 20 61 20 66 75 6e 63 74 |as input| a funct|
|000009e0| 69 6f 6e 20 77 68 69 63 | 68 20 69 73 0a 61 20 6d |ion whic|h is.a m|
|000009f0| 61 70 70 69 6e 67 20 66 | 72 6f 6d 20 24 52 5e 4e |apping f|rom $R^N|
|00000a00| 20 5c 72 69 67 68 74 61 | 72 72 6f 77 20 52 24 2e | \righta|rrow R$.|
|00000a10| 20 20 49 6e 20 4d 61 70 | 6c 65 20 74 68 69 73 20 | In Map|le this |
|00000a20| 69 73 20 63 61 6c 6c 65 | 64 20 61 6e 0a 7b 5c 65 |is calle|d an.{\e|
|00000a30| 6d 20 6f 70 65 72 61 74 | 6f 72 7d 20 6f 72 20 61 |m operat|or} or a|
|00000a40| 20 7b 5c 65 6d 20 6d 61 | 70 70 69 6e 67 7d 2e 0a | {\em ma|pping}..|
|00000a50| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 24 73 69 |For exam|ple, $si|
|00000a60| 6e 28 78 29 24 20 69 73 | 20 61 6e 20 65 78 70 72 |n(x)$ is| an expr|
|00000a70| 65 73 73 69 6f 6e 20 69 | 6e 20 24 78 24 20 62 75 |ession i|n $x$ bu|
|00000a80| 74 20 24 73 69 6e 24 20 | 62 79 20 69 74 73 65 6c |t $sin$ |by itsel|
|00000a90| 66 20 69 73 20 61 0a 6d | 61 70 70 69 6e 67 20 66 |f is a.m|apping f|
|00000aa0| 72 6f 6d 20 24 52 20 5c | 72 69 67 68 74 61 72 72 |rom $R \|rightarr|
|00000ab0| 6f 77 20 52 24 2e 0a 41 | 6e 6f 74 68 65 72 20 6d |ow R$..A|nother m|
|00000ac0| 61 70 70 69 6e 67 20 69 | 6e 20 4d 61 70 6c 65 20 |apping i|n Maple |
|00000ad0| 69 73 20 24 73 69 6e 2b | 63 6f 73 5e 32 24 2e 0a |is $sin+|cos^2$..|
|00000ae0| 41 20 7b 5c 65 6d 20 6d | 61 70 70 69 6e 67 7d 20 |A {\em m|apping} |
|00000af0| 63 61 6e 20 61 6c 77 61 | 79 73 20 62 65 20 61 70 |can alwa|ys be ap|
|00000b00| 70 6c 69 65 64 20 74 6f | 20 61 6e 20 61 72 67 75 |plied to| an argu|
|00000b10| 6d 65 6e 74 2e 0a 46 6f | 72 20 65 78 61 6d 70 6c |ment..Fo|r exampl|
|00000b20| 65 2c 20 67 69 76 65 6e | 20 74 68 65 20 6d 61 70 |e, given| the map|
|00000b30| 70 69 6e 67 0a 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |ping..\b|egin{map|
|00000b40| 6c 65 69 6e 70 75 74 7d | 0a 46 20 3a 3d 20 73 69 |leinput}|.F := si|
|00000b50| 6e 2b 63 6f 73 5e 32 3b | 0a 5c 65 6e 64 7b 6d 61 |n+cos^2;|.\end{ma|
|00000b60| 70 6c 65 69 6e 70 75 74 | 7d 0a 5c 62 65 67 69 6e |pleinput|}.\begin|
|00000b70| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 5c 5b 0a |{maplela|tex}.\[.|
|00000b80| 7b 46 7d 20 3a 3d 20 7b | 5c 72 6d 20 73 69 6e 7d |{F} := {|\rm sin}|
|00000b90| 20 2b 20 7b 5c 72 6d 20 | 63 6f 73 7d 5e 7b 32 7d | + {\rm |cos}^{2}|
|00000ba0| 0a 5c 5d 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 6c 61 |.\].\end|{maplela|
|00000bb0| 74 65 78 7d 0a 69 66 20 | 77 65 20 61 70 70 6c 79 |tex}.if |we apply|
|00000bc0| 20 69 74 20 74 6f 20 61 | 20 6e 75 6d 62 65 72 20 | it to a| number |
|00000bd0| 77 65 20 67 65 74 20 61 | 20 6e 75 6d 62 65 72 20 |we get a| number |
|00000be0| 61 6e 64 20 69 66 20 77 | 65 20 61 70 70 6c 79 0a |and if w|e apply.|
|00000bf0| 69 74 20 74 6f 20 61 20 | 66 6f 72 6d 75 6c 61 20 |it to a |formula |
|00000c00| 77 65 20 67 65 74 20 61 | 20 66 6f 72 6d 75 6c 61 |we get a| formula|
|00000c10| 2c 20 65 2e 67 2e 0a 0a | 5c 62 65 67 69 6e 7b 6d |, e.g...|\begin{m|
|00000c20| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 46 28 31 2e 30 |apleinpu|t}.F(1.0|
|00000c30| 29 3b 0a 5c 65 6e 64 7b | 6d 61 70 6c 65 69 6e 70 |);.\end{|mapleinp|
|00000c40| 75 74 7d 0a 5c 62 65 67 | 69 6e 7b 6d 61 70 6c 65 |ut}.\beg|in{maple|
|00000c50| 6c 61 74 65 78 7d 0a 5c | 5b 0a 31 2e 31 33 33 33 |latex}.\|[.1.1333|
|00000c60| 39 37 35 36 37 0a 5c 5d | 0a 5c 65 6e 64 7b 6d 61 |97567.\]|.\end{ma|
|00000c70| 70 6c 65 6c 61 74 65 78 | 7d 0a 5c 62 65 67 69 6e |plelatex|}.\begin|
|00000c80| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 46 28 50 |{maplein|put}.F(P|
|00000c90| 69 2f 33 29 3b 0a 5c 65 | 6e 64 7b 6d 61 70 6c 65 |i/3);.\e|nd{maple|
|00000ca0| 69 6e 70 75 74 7d 0a 5c | 62 65 67 69 6e 7b 6d 61 |input}.\|begin{ma|
|00000cb0| 70 6c 65 6c 61 74 65 78 | 7d 0a 5c 5b 0a 7b 5c 64 |plelatex|}.\[.{\d|
|00000cc0| 69 73 70 6c 61 79 73 74 | 79 6c 65 20 5c 66 72 61 |isplayst|yle \fra|
|00000cd0| 63 20 7b 31 7d 7b 32 7d | 7d 5c 2c 5c 73 71 72 74 |c {1}{2}|}\,\sqrt|
|00000ce0| 20 7b 33 7d 20 2b 20 7b | 5c 64 69 73 70 6c 61 79 | {3} + {|\display|
|00000cf0| 73 74 79 6c 65 20 5c 66 | 72 61 63 20 7b 31 0a 7d |style \f|rac {1.}|
|00000d00| 7b 34 7d 7d 0a 5c 5d 0a | 5c 65 6e 64 7b 6d 61 70 |{4}}.\].|\end{map|
|00000d10| 6c 65 6c 61 74 65 78 7d | 0a 5c 62 65 67 69 6e 7b |lelatex}|.\begin{|
|00000d20| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 46 28 78 29 |mapleinp|ut}.F(x)|
|00000d30| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|00000d40| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|00000d50| 61 74 65 78 7d 0a 5c 5b | 0a 7b 5c 72 6d 20 73 69 |atex}.\[|.{\rm si|
|00000d60| 6e 7d 28 5c 2c 7b 78 7d | 5c 2c 29 20 2b 20 7b 5c |n}(\,{x}|\,) + {\|
|00000d70| 72 6d 20 63 6f 73 7d 28 | 5c 2c 7b 78 7d 5c 2c 29 |rm cos}(|\,{x}\,)|
|00000d80| 5e 7b 32 7d 0a 5c 5d 0a | 5c 65 6e 64 7b 6d 61 70 |^{2}.\].|\end{map|
|00000d90| 6c 65 6c 61 74 65 78 7d | 0a 0a 53 74 72 69 63 74 |lelatex}|..Strict|
|00000da0| 6c 79 20 73 70 65 61 6b | 69 6e 67 2c 0a 4d 61 70 |ly speak|ing,.Map|
|00000db0| 6c 65 20 77 6f 75 6c 64 | 20 63 61 6c 6c 20 62 6f |le would| call bo|
|00000dc0| 74 68 20 74 68 65 20 66 | 6f 72 6d 75 6c 61 20 24 |th the f|ormula $|
|00000dd0| 73 69 6e 28 78 29 20 2b | 20 63 6f 73 28 78 29 5e |sin(x) +| cos(x)^|
|00000de0| 32 24 20 61 6e 64 0a 74 | 68 65 20 6d 61 70 70 69 |2$ and.t|he mappi|
|00000df0| 6e 67 20 24 73 69 6e 20 | 2b 20 63 6f 73 5e 32 24 |ng $sin |+ cos^2$|
|00000e00| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 2e 0a 41 6e | express|ions..An|
|00000e10| 79 20 64 69 73 74 69 6e | 63 74 69 6f 6e 20 62 65 |y distin|ction be|
|00000e20| 74 77 65 65 6e 20 74 68 | 65 20 74 77 6f 20 63 6f |tween th|e two co|
|00000e30| 6d 65 73 20 66 72 6f 6d | 20 68 6f 77 20 77 65 20 |mes from| how we |
|00000e40| 75 73 65 20 74 68 65 6d | 2e 0a 4d 61 70 70 69 6e |use them|..Mappin|
|00000e50| 67 73 20 61 72 65 20 6d | 61 70 70 69 6e 67 73 20 |gs are m|appings |
|00000e60| 62 65 63 61 75 73 65 20 | 6f 75 72 20 69 6e 74 65 |because |our inte|
|00000e70| 6e 74 69 6f 6e 20 69 73 | 0a 74 6f 20 7b 5c 65 6d |ntion is|.to {\em|
|00000e80| 20 61 70 70 6c 79 7d 20 | 74 68 65 6d 20 74 6f 20 | apply} |them to |
|00000e90| 61 72 67 75 6d 65 6e 74 | 73 2c 20 77 68 69 6c 65 |argument|s, while|
|00000ea0| 20 66 6f 72 6d 75 6c 61 | 65 20 61 72 65 20 74 68 | formula|e are th|
|00000eb0| 65 0a 72 65 73 75 6c 74 | 20 6f 66 20 61 70 70 6c |e.result| of appl|
|00000ec0| 79 69 6e 67 20 6d 61 70 | 70 69 6e 67 73 20 74 6f |ying map|pings to|
|00000ed0| 20 74 68 65 69 72 20 61 | 72 67 75 6d 65 6e 74 73 | their a|rguments|
|00000ee0| 2e 0a 54 68 72 6f 75 67 | 68 6f 75 74 20 74 68 69 |..Throug|hout thi|
|00000ef0| 73 20 61 72 74 69 63 6c | 65 20 77 65 20 77 69 6c |s articl|e we wil|
|00000f00| 6c 20 63 61 6c 6c 20 74 | 68 65 20 66 6f 72 6d 65 |l call t|he forme|
|00000f10| 72 0a 6d 61 70 70 69 6e | 67 73 20 61 6e 64 20 74 |r.mappin|gs and t|
|00000f20| 68 65 20 6c 61 74 74 65 | 72 20 66 6f 72 6d 75 6c |he latte|r formul|
|00000f30| 61 65 2e 0a 54 68 75 73 | 20 74 68 65 20 5c 6d 65 |ae..Thus| the \me|
|00000f40| 78 70 72 7b 64 69 66 66 | 7d 20 70 72 6f 63 65 64 |xpr{diff|} proced|
|00000f50| 75 72 65 20 64 69 66 66 | 65 72 65 6e 74 69 61 74 |ure diff|erentiat|
|00000f60| 65 73 20 61 20 66 6f 72 | 6d 75 6c 61 20 61 6e 64 |es a for|mula and|
|00000f70| 20 72 65 74 75 72 6e 73 | 0a 61 20 66 6f 72 6d 75 | returns|.a formu|
|00000f80| 6c 61 2e 20 20 54 68 65 | 20 5c 6d 65 78 70 72 7b |la. The| \mexpr{|
|00000f90| 44 7d 20 6f 70 65 72 61 | 74 6f 72 20 64 69 66 66 |D} opera|tor diff|
|00000fa0| 65 72 65 6e 74 69 61 74 | 65 73 20 61 20 6d 61 70 |erentiat|es a map|
|00000fb0| 70 69 6e 67 0a 61 6e 64 | 20 72 65 74 75 72 6e 73 |ping.and| returns|
|00000fc0| 20 61 20 6d 61 70 70 69 | 6e 67 2e 20 20 43 6f 6d | a mappi|ng. Com|
|00000fd0| 70 61 72 65 0a 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |pare..\b|egin{map|
|00000fe0| 6c 65 69 6e 70 75 74 7d | 0a 64 69 66 66 28 20 73 |leinput}|.diff( s|
|00000ff0| 69 6e 28 78 29 5e 32 2c | 20 78 20 29 3b 0a 5c 65 |in(x)^2,| x );.\e|
|00001000| 6e 64 7b 6d 61 70 6c 65 | 69 6e 70 75 74 7d 0a 5c |nd{maple|input}.\|
|00001010| 62 65 67 69 6e 7b 6d 61 | 70 6c 65 6c 61 74 65 78 |begin{ma|plelatex|
|00001020| 7d 0a 5c 5b 0a 32 5c 2c | 7b 5c 72 6d 20 73 69 6e |}.\[.2\,|{\rm sin|
|00001030| 7d 28 5c 2c 7b 78 7d 5c | 2c 29 5c 2c 7b 5c 72 6d |}(\,{x}\|,)\,{\rm|
|00001040| 20 63 6f 73 7d 28 5c 2c | 7b 78 7d 5c 2c 29 0a 5c | cos}(\,|{x}\,).\|
|00001050| 5d 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 6c 61 74 65 |].\end{m|aplelate|
|00001060| 78 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 69 |x}.\begi|n{maplei|
|00001070| 6e 70 75 74 7d 0a 44 28 | 73 69 6e 5e 32 29 3b 0a |nput}.D(|sin^2);.|
|00001080| 5c 65 6e 64 7b 6d 61 70 | 6c 65 69 6e 70 75 74 7d |\end{map|leinput}|
|00001090| 0a 5c 62 65 67 69 6e 7b | 6d 61 70 6c 65 6c 61 74 |.\begin{|maplelat|
|000010a0| 65 78 7d 0a 5c 5b 0a 32 | 5c 2c 7b 5c 72 6d 20 63 |ex}.\[.2|\,{\rm c|
|000010b0| 6f 73 7d 5c 2c 7b 5c 72 | 6d 20 73 69 6e 7d 0a 5c |os}\,{\r|m sin}.\|
|000010c0| 5d 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 6c 61 74 65 |].\end{m|aplelate|
|000010d0| 78 7d 0a 0a 4e 6f 74 65 | 2c 20 66 6f 72 20 6d 61 |x}..Note|, for ma|
|000010e0| 70 70 69 6e 67 73 2c 20 | 66 75 6e 63 74 69 6f 6e |ppings, |function|
|000010f0| 61 6c 20 63 6f 6d 70 6f | 73 69 74 69 6f 6e 20 69 |al compo|sition i|
|00001100| 73 20 72 65 70 72 65 73 | 65 6e 74 65 64 0a 65 78 |s repres|ented.ex|
|00001110| 70 6c 69 63 69 74 6c 79 | 20 62 79 20 75 73 65 20 |plicitly| by use |
|00001120| 6f 66 20 74 68 65 20 5c | 6d 65 78 70 72 7b 40 7d |of the \|mexpr{@}|
|00001130| 20 6f 70 65 72 61 74 6f | 72 2c 20 61 6e 64 20 72 | operato|r, and r|
|00001140| 65 70 65 61 74 65 64 20 | 63 6f 6d 70 6f 73 69 74 |epeated |composit|
|00001150| 69 6f 6e 0a 69 73 20 72 | 65 70 72 65 73 65 6e 74 |ion.is r|epresent|
|00001160| 65 64 20 62 79 20 74 68 | 65 20 5c 6d 65 78 70 72 |ed by th|e \mexpr|
|00001170| 7b 40 40 7d 20 6f 70 65 | 72 61 74 6f 72 2e 20 20 |{@@} ope|rator. |
|00001180| 43 6f 6d 70 61 72 65 0a | 0a 5c 62 65 67 69 6e 7b |Compare.|.\begin{|
|00001190| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 64 69 66 66 |mapleinp|ut}.diff|
|000011a0| 28 20 73 69 6e 28 63 6f | 73 28 78 29 29 2c 20 78 |( sin(co|s(x)), x|
|000011b0| 20 29 3b 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 69 6e | );.\end|{maplein|
|000011c0| 70 75 74 7d 0a 5c 62 65 | 67 69 6e 7b 6d 61 70 6c |put}.\be|gin{mapl|
|000011d0| 65 6c 61 74 65 78 7d 0a | 5c 5b 0a 20 2d 20 7b 5c |elatex}.|\[. - {\|
|000011e0| 72 6d 20 63 6f 73 7d 28 | 5c 2c 7b 5c 72 6d 20 63 |rm cos}(|\,{\rm c|
|000011f0| 6f 73 7d 28 5c 2c 7b 78 | 7d 5c 2c 29 5c 2c 29 5c |os}(\,{x|}\,)\,)\|
|00001200| 2c 7b 5c 72 6d 20 73 69 | 6e 7d 28 5c 2c 7b 78 7d |,{\rm si|n}(\,{x}|
|00001210| 5c 2c 29 0a 5c 5d 0a 5c | 65 6e 64 7b 6d 61 70 6c |\,).\].\|end{mapl|
|00001220| 65 6c 61 74 65 78 7d 0a | 5c 62 65 67 69 6e 7b 6d |elatex}.|\begin{m|
|00001230| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 44 28 20 73 69 |apleinpu|t}.D( si|
|00001240| 6e 40 63 6f 73 20 29 3b | 0a 5c 65 6e 64 7b 6d 61 |n@cos );|.\end{ma|
|00001250| 70 6c 65 69 6e 70 75 74 | 7d 0a 5c 62 65 67 69 6e |pleinput|}.\begin|
|00001260| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 5c 5b 0a |{maplela|tex}.\[.|
|00001270| 20 2d 20 7b 5c 72 6d 20 | 63 6f 73 7d 5e 7b 28 5c | - {\rm |cos}^{(\|
|00001280| 2c 32 5c 2c 29 7d 5c 2c | 7b 5c 72 6d 20 73 69 6e |,2\,)}\,|{\rm sin|
|00001290| 7d 0a 5c 5d 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 6c |}.\].\en|d{maplel|
|000012a0| 61 74 65 78 7d 0a 0a 5c | 68 65 61 64 69 6e 67 7b |atex}..\|heading{|
|000012b0| 44 65 72 69 76 61 74 69 | 76 65 73 20 6f 66 20 55 |Derivati|ves of U|
|000012c0| 6e 6b 6e 6f 77 6e 20 46 | 75 6e 63 74 69 6f 6e 73 |nknown F|unctions|
|000012d0| 7d 0a 0a 41 73 20 77 65 | 6c 6c 20 61 73 20 62 65 |}..As we|ll as be|
|000012e0| 69 6e 67 20 61 62 6c 65 | 20 74 6f 20 63 6f 6d 70 |ing able| to comp|
|000012f0| 75 74 65 20 77 69 74 68 | 20 6b 6e 6f 77 6e 20 66 |ute with| known f|
|00001300| 75 6e 63 74 69 6f 6e 73 | 2c 20 6c 69 6b 65 0a 24 |unctions|, like.$|
|00001310| 5c 73 69 6e 2c 20 5c 63 | 6f 73 2c 20 5c 65 78 70 |\sin, \c|os, \exp|
|00001320| 2c 20 5c 6c 6e 24 2c 20 | 65 74 63 2e 2c 20 4d 61 |, \ln$, |etc., Ma|
|00001330| 70 6c 65 20 68 61 73 20 | 61 6c 77 61 79 73 20 73 |ple has |always s|
|00001340| 75 70 70 6f 72 74 65 64 | 20 74 68 65 20 61 62 69 |upported| the abi|
|00001350| 6c 69 74 79 20 74 6f 0a | 63 6f 6d 70 75 74 65 20 |lity to.|compute |
|00001360| 77 69 74 68 20 75 6e 6b | 6e 6f 77 6e 20 66 75 6e |with unk|nown fun|
|00001370| 63 74 69 6f 6e 73 2e 20 | 20 49 6e 20 74 68 65 20 |ctions. | In the |
|00001380| 66 6f 6c 6c 6f 77 69 6e | 67 20 65 78 61 6d 70 6c |followin|g exampl|
|00001390| 65 73 0a 6f 66 20 70 61 | 72 74 69 61 6c 20 61 6e |es.of pa|rtial an|
|000013a0| 64 20 72 65 70 65 61 74 | 65 64 20 70 61 72 74 69 |d repeat|ed parti|
|000013b0| 61 6c 20 64 69 66 66 65 | 72 65 6e 74 69 61 74 69 |al diffe|rentiati|
|000013c0| 6f 6e 20 6f 66 20 61 6e | 20 75 6e 6b 6e 6f 77 6e |on of an| unknown|
|000013d0| 20 66 75 6e 63 74 69 6f | 6e 20 24 66 24 2c 20 74 | functio|n $f$, t|
|000013e0| 68 65 0a 6e 6f 74 61 74 | 69 6f 6e 20 5c 6d 65 78 |he.notat|ion \mex|
|000013f0| 70 72 7b 44 5b 69 5d 28 | 66 29 7d 20 6d 65 61 6e |pr{D[i](|f)} mean|
|00001400| 73 20 74 68 65 20 70 61 | 72 74 69 61 6c 20 64 65 |s the pa|rtial de|
|00001410| 72 69 76 61 74 69 76 65 | 20 6f 66 20 24 66 24 20 |rivative| of $f$ |
|00001420| 77 69 74 68 0a 72 65 73 | 70 65 63 74 20 74 6f 20 |with.res|pect to |
|00001430| 74 68 65 20 24 69 5e 7b | 74 68 7d 24 20 61 72 67 |the $i^{|th}$ arg|
|00001440| 75 6d 65 6e 74 2e 0a 0a | 5c 62 65 67 69 6e 7b 6d |ument...|\begin{m|
|00001450| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 64 69 66 66 28 |apleinpu|t}.diff(|
|00001460| 66 28 78 2c 79 29 2c 79 | 29 3b 0a 5c 65 6e 64 7b |f(x,y),y|);.\end{|
|00001470| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 5c 62 65 67 |mapleinp|ut}.\beg|
|00001480| 69 6e 7b 6d 61 70 6c 65 | 6c 61 74 65 78 7d 0a 5c |in{maple|latex}.\|
|00001490| 5b 0a 7b 5c 66 72 61 63 | 20 7b 7b 20 5c 70 61 72 |[.{\frac| {{ \par|
|000014a0| 74 69 61 6c 7d 7d 7b 7b | 20 5c 70 61 72 74 69 61 |tial}}{{| \partia|
|000014b0| 6c 7d 7b 79 7d 7d 7d 5c | 2c 7b 5c 72 6d 20 66 7d |l}{y}}}\|,{\rm f}|
|000014c0| 28 5c 2c 7b 78 7d 2c 20 | 7b 79 7d 5c 2c 29 0a 5c |(\,{x}, |{y}\,).\|
|000014d0| 5d 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 6c 61 74 65 |].\end{m|aplelate|
|000014e0| 78 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 69 |x}.\begi|n{maplei|
|000014f0| 6e 70 75 74 7d 0a 44 5b | 32 5d 28 66 29 3b 0a 5c |nput}.D[|2](f);.\|
|00001500| 65 6e 64 7b 6d 61 70 6c | 65 69 6e 70 75 74 7d 0a |end{mapl|einput}.|
|00001510| 5c 62 65 67 69 6e 7b 6d | 61 70 6c 65 6c 61 74 65 |\begin{m|aplelate|
|00001520| 78 7d 0a 5c 5b 0a 7b 7b | 44 7d 5f 7b 32 7d 7d 28 |x}.\[.{{|D}_{2}}(|
|00001530| 5c 2c 7b 66 7d 5c 2c 29 | 0a 5c 5d 0a 5c 65 6e 64 |\,{f}\,)|.\].\end|
|00001540| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 5c 62 65 |{maplela|tex}.\be|
|00001550| 67 69 6e 7b 6d 61 70 6c | 65 69 6e 70 75 74 7d 0a |gin{mapl|einput}.|
|00001560| 64 69 66 66 28 66 28 78 | 2c 79 29 2c 78 2c 79 2c |diff(f(x|,y),x,y,|
|00001570| 78 29 20 3d 20 64 69 66 | 66 28 64 69 66 66 28 64 |x) = dif|f(diff(d|
|00001580| 69 66 66 28 66 28 78 2c | 79 29 2c 78 29 2c 79 29 |iff(f(x,|y),x),y)|
|00001590| 2c 78 29 3b 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 69 |,x);.\en|d{maplei|
|000015a0| 6e 70 75 74 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |nput}.\b|egin{map|
|000015b0| 6c 65 6c 61 74 65 78 7d | 0a 5c 5b 0a 7b 5c 66 72 |lelatex}|.\[.{\fr|
|000015c0| 61 63 20 7b 7b 20 5c 70 | 61 72 74 69 61 6c 7d 5e |ac {{ \p|artial}^|
|000015d0| 7b 33 7d 7d 7b 7b 20 5c | 70 61 72 74 69 61 6c 7d |{3}}{{ \|partial}|
|000015e0| 7b 79 7d 5c 2c 7b 20 5c | 70 61 72 74 69 61 6c 7d |{y}\,{ \|partial}|
|000015f0| 7b 78 7d 5e 7b 32 7d 7d | 7d 5c 2c 0a 7b 5c 72 6d |{x}^{2}}|}\,.{\rm|
|00001600| 20 66 7d 28 5c 2c 7b 78 | 7d 2c 20 7b 79 7d 5c 2c | f}(\,{x|}, {y}\,|
|00001610| 29 3d 7b 5c 66 72 61 63 | 20 7b 7b 20 5c 70 61 72 |)={\frac| {{ \par|
|00001620| 74 69 61 6c 7d 5e 7b 33 | 7d 7d 7b 7b 20 5c 70 61 |tial}^{3|}}{{ \pa|
|00001630| 72 74 69 61 6c 7d 7b 79 | 7d 5c 2c 7b 20 0a 5c 70 |rtial}{y|}\,{ .\p|
|00001640| 61 72 74 69 61 6c 7d 7b | 78 7d 5e 7b 32 7d 7d 7d |artial}{|x}^{2}}}|
|00001650| 5c 2c 7b 5c 72 6d 20 66 | 7d 28 5c 2c 7b 78 7d 2c |\,{\rm f|}(\,{x},|
|00001660| 20 7b 79 7d 5c 2c 29 0a | 5c 5d 0a 5c 65 6e 64 7b | {y}\,).|\].\end{|
|00001670| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 5c 62 65 67 |maplelat|ex}.\beg|
|00001680| 69 6e 7b 6d 61 70 6c 65 | 69 6e 70 75 74 7d 0a 44 |in{maple|input}.D|
|00001690| 5b 31 2c 32 2c 31 5d 28 | 66 29 20 3d 20 44 5b 31 |[1,2,1](|f) = D[1|
|000016a0| 5d 28 44 5b 32 5d 28 44 | 5b 31 5d 28 66 29 29 29 |](D[2](D|[1](f)))|
|000016b0| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|000016c0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|000016d0| 61 74 65 78 7d 0a 5c 5b | 0a 7b 7b 44 7d 5f 7b 31 |atex}.\[|.{{D}_{1|
|000016e0| 2c 20 31 2c 20 32 7d 7d | 28 5c 2c 7b 66 7d 5c 2c |, 1, 2}}|(\,{f}\,|
|000016f0| 29 3d 7b 7b 44 7d 5f 7b | 31 2c 20 31 2c 20 32 7d |)={{D}_{|1, 1, 2}|
|00001700| 7d 28 5c 2c 7b 66 7d 5c | 2c 29 0a 5c 5d 0a 5c 65 |}(\,{f}\|,).\].\e|
|00001710| 6e 64 7b 6d 61 70 6c 65 | 6c 61 74 65 78 7d 0a 0a |nd{maple|latex}..|
|00001720| 49 6e 20 4d 61 70 6c 65 | 2c 20 74 68 65 20 5c 6d |In Maple|, the \m|
|00001730| 65 78 70 72 7b 44 7d 20 | 6f 70 65 72 61 74 6f 72 |expr{D} |operator|
|00001740| 20 69 73 20 61 6e 20 6f | 72 64 69 6e 61 72 79 20 | is an o|rdinary |
|00001750| 4d 61 70 6c 65 20 70 72 | 6f 63 65 64 75 72 65 2e |Maple pr|ocedure.|
|00001760| 0a 57 68 65 6e 20 77 65 | 20 69 6e 70 75 74 20 5c |.When we| input \|
|00001770| 6d 65 78 70 72 7b 44 5b | 31 2c 32 2c 31 5d 28 66 |mexpr{D[|1,2,1](f|
|00001780| 29 7d 2c 20 77 68 61 74 | 20 68 61 70 70 65 6e 73 |)}, what| happens|
|00001790| 3f 0a 49 66 20 5c 6d 65 | 78 70 72 7b 44 7d 20 77 |?.If \me|xpr{D} w|
|000017a0| 61 73 20 61 6e 20 61 72 | 72 61 79 20 6f 72 20 74 |as an ar|ray or t|
|000017b0| 61 62 6c 65 20 74 68 65 | 6e 20 74 68 65 20 65 6e |able the|n the en|
|000017c0| 74 72 79 20 5c 6d 65 78 | 70 72 7b 44 5b 31 2c 32 |try \mex|pr{D[1,2|
|000017d0| 2c 31 5d 7d 0a 77 6f 75 | 6c 64 20 62 65 20 61 70 |,1]}.wou|ld be ap|
|000017e0| 70 6c 69 65 64 20 74 6f | 20 24 66 24 2e 20 20 49 |plied to| $f$. I|
|000017f0| 6e 20 74 68 65 20 63 61 | 73 65 20 6f 66 20 61 20 |n the ca|se of a |
|00001800| 70 72 6f 63 65 64 75 72 | 65 2c 20 77 68 61 74 20 |procedur|e, what |
|00001810| 68 61 70 70 65 6e 73 0a | 69 73 20 74 68 61 74 20 |happens.|is that |
|00001820| 69 74 20 69 73 20 63 61 | 6c 6c 65 64 20 77 69 74 |it is ca|lled wit|
|00001830| 68 20 74 68 65 20 67 69 | 76 65 6e 20 61 72 67 75 |h the gi|ven argu|
|00001840| 6d 65 6e 74 73 20 61 6e | 64 20 69 6e 73 69 64 65 |ments an|d inside|
|00001850| 0a 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 74 |.the pro|cedure t|
|00001860| 68 65 20 24 70 72 6f 63 | 6e 61 6d 65 24 20 76 61 |he $proc|name$ va|
|00001870| 72 69 61 62 6c 65 27 73 | 20 76 61 6c 75 65 20 77 |riable's| value w|
|00001880| 69 6c 6c 20 62 65 20 74 | 68 65 20 73 75 62 73 63 |ill be t|he subsc|
|00001890| 72 69 70 74 2e 0a 49 6e | 20 6f 75 72 20 65 78 61 |ript..In| our exa|
|000018a0| 6d 70 6c 65 2c 20 5c 6d | 65 78 70 72 7b 44 7d 20 |mple, \m|expr{D} |
|000018b0| 69 73 20 63 61 6c 6c 65 | 64 20 77 69 74 68 20 24 |is calle|d with $|
|000018c0| 66 24 20 61 73 20 61 6e | 20 61 72 67 75 6d 65 6e |f$ as an| argumen|
|000018d0| 74 0a 61 6e 64 20 74 68 | 65 20 76 61 6c 75 65 20 |t.and th|e value |
|000018e0| 6f 66 20 24 70 72 6f 63 | 6e 61 6d 65 24 20 77 69 |of $proc|name$ wi|
|000018f0| 6c 6c 20 62 65 20 5c 6d | 65 78 70 72 7b 44 5b 31 |ll be \m|expr{D[1|
|00001900| 2c 32 2c 31 5d 7d 2e 0a | 54 68 65 20 5c 6d 65 78 |,2,1]}..|The \mex|
|00001910| 70 72 7b 44 7d 20 63 6f | 64 65 20 73 6f 72 74 73 |pr{D} co|de sorts|
|00001920| 20 74 68 65 20 69 6e 64 | 69 63 65 73 20 28 61 73 | the ind|ices (as|
|00001930| 73 75 6d 65 73 20 70 61 | 72 74 69 61 6c 20 64 65 |sumes pa|rtial de|
|00001940| 72 69 76 61 74 69 76 65 | 73 20 63 6f 6d 6d 75 74 |rivative|s commut|
|00001950| 65 29 0a 61 6e 64 20 72 | 65 74 75 72 6e 73 20 5c |e).and r|eturns \|
|00001960| 6d 65 78 70 72 7b 44 5b | 31 2c 31 2c 32 5d 28 66 |mexpr{D[|1,1,2](f|
|00001970| 29 7d 20 75 6e 65 76 61 | 6c 75 61 74 65 64 2e 0a |)} uneva|luated..|
|00001980| 54 68 69 73 20 73 75 62 | 73 63 72 69 70 74 65 64 |This sub|scripted|
|00001990| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 69 6e | functio|n callin|
|000019a0| 67 20 66 61 63 69 6c 69 | 74 79 20 69 73 20 6e 65 |g facili|ty is ne|
|000019b0| 77 20 69 6e 20 4d 61 70 | 6c 65 20 56 2e 0a 49 74 |w in Map|le V..It|
|000019c0| 20 69 73 20 61 6c 73 6f | 20 75 73 65 64 20 66 6f | is also| used fo|
|000019d0| 72 20 74 68 65 20 6c 6f | 67 20 66 75 6e 63 74 69 |r the lo|g functi|
|000019e0| 6f 6e 20 66 6f 72 20 64 | 69 66 66 65 72 65 6e 74 |on for d|ifferent|
|000019f0| 20 62 61 73 65 73 2e 0a | 46 6f 72 20 65 78 61 6d | bases..|For exam|
|00001a00| 70 6c 65 2c 20 5c 6d 65 | 78 70 72 7b 6c 6f 67 5b |ple, \me|xpr{log[|
|00001a10| 62 5d 28 78 29 7d 20 6d | 65 61 6e 73 20 24 5c 6c |b](x)} m|eans $\l|
|00001a20| 6f 67 20 5f 62 20 78 24 | 20 69 2e 65 2e 20 6c 6f |og _b x$| i.e. lo|
|00001a30| 67 61 72 69 74 68 6d 20 | 62 61 73 65 20 24 62 24 |garithm |base $b$|
|00001a40| 20 6f 66 20 24 78 24 2e | 0a 0a 4f 6e 65 20 6f 66 | of $x$.|..One of|
|00001a50| 20 74 68 65 20 6d 61 69 | 6e 20 72 65 61 73 6f 6e | the mai|n reason|
|00001a60| 73 20 77 68 79 20 4d 61 | 70 6c 65 20 68 61 73 20 |s why Ma|ple has |
|00001a70| 61 20 5c 6d 65 78 70 72 | 7b 44 7d 20 6f 70 65 72 |a \mexpr|{D} oper|
|00001a80| 61 74 6f 72 20 61 73 20 | 77 65 6c 6c 0a 61 73 20 |ator as |well.as |
|00001a90| 61 20 5c 6d 65 78 70 72 | 7b 64 69 66 66 7d 20 70 |a \mexpr|{diff} p|
|00001aa0| 72 6f 63 65 64 75 72 65 | 20 69 73 20 62 65 63 61 |rocedure| is beca|
|00001ab0| 75 73 65 20 69 74 20 69 | 73 20 6e 6f 74 20 70 6f |use it i|s not po|
|00001ac0| 73 73 69 62 6c 65 20 74 | 6f 20 73 70 65 63 69 66 |ssible t|o specif|
|00001ad0| 79 20 24 79 27 28 30 29 | 24 20 75 73 69 6e 67 0a |y $y'(0)|$ using.|
|00001ae0| 5c 6d 65 78 70 72 7b 64 | 69 66 66 7d 2e 20 20 4d |\mexpr{d|iff}. M|
|00001af0| 61 70 6c 65 20 75 73 65 | 72 73 20 72 65 61 64 69 |aple use|rs readi|
|00001b00| 6e 67 20 74 68 69 73 20 | 61 72 74 69 63 6c 65 20 |ng this |article |
|00001b10| 6d 69 67 68 74 20 74 68 | 69 6e 6b 20 6f 66 0a 75 |might th|ink of.u|
|00001b20| 73 69 6e 67 20 74 68 65 | 20 4d 61 70 6c 65 20 5c |sing the| Maple \|
|00001b30| 6d 65 78 70 72 7b 73 75 | 62 73 7d 20 70 72 6f 63 |mexpr{su|bs} proc|
|00001b40| 65 64 75 72 65 20 65 2e | 67 2e 20 5c 6d 65 78 70 |edure e.|g. \mexp|
|00001b50| 72 7b 73 75 62 73 28 78 | 3d 30 2c 64 69 66 66 28 |r{subs(x|=0,diff(|
|00001b60| 73 69 6e 28 78 29 2c 78 | 29 29 7d 2e 0a 54 68 69 |sin(x),x|))}..Thi|
|00001b70| 73 20 77 6f 72 6b 73 20 | 69 66 20 4d 61 70 6c 65 |s works |if Maple|
|00001b80| 20 63 61 6e 20 61 63 74 | 75 61 6c 6c 79 20 64 69 | can act|ually di|
|00001b90| 66 66 65 72 65 6e 74 69 | 61 74 65 20 74 68 65 20 |fferenti|ate the |
|00001ba0| 66 75 6e 63 74 69 6f 6e | 0a 62 75 74 20 69 74 20 |function|.but it |
|00001bb0| 77 69 6c 6c 20 6e 6f 74 | 20 77 6f 72 6b 20 66 6f |will not| work fo|
|00001bc0| 72 20 61 6e 20 75 6e 6b | 6e 6f 77 6e 20 66 75 6e |r an unk|nown fun|
|00001bd0| 63 74 69 6f 6e 20 24 79 | 24 2e 0a 42 65 69 6e 67 |ction $y|$..Being|
|00001be0| 20 61 62 6c 65 20 74 6f | 20 72 65 70 72 65 73 65 | able to| represe|
|00001bf0| 6e 74 20 24 79 27 28 30 | 29 24 20 73 69 6d 70 6c |nt $y'(0|)$ simpl|
|00001c00| 79 20 61 73 20 24 44 28 | 79 29 28 30 29 24 20 6d |y as $D(|y)(0)$ m|
|00001c10| 6f 74 69 76 61 74 65 64 | 20 74 68 65 0a 69 6e 74 |otivated| the.int|
|00001c20| 72 6f 64 75 63 74 69 6f | 6e 20 6f 66 20 6f 70 65 |roductio|n of ope|
|00001c30| 72 61 74 6f 72 73 2c 20 | 69 6e 20 70 61 72 74 69 |rators, |in parti|
|00001c40| 63 75 6c 61 72 20 74 68 | 65 20 5c 6d 65 78 70 72 |cular th|e \mexpr|
|00001c50| 7b 44 7d 20 6f 70 65 72 | 61 74 6f 72 20 69 6e 20 |{D} oper|ator in |
|00001c60| 4d 61 70 6c 65 2e 0a 54 | 68 69 73 20 6e 6f 74 61 |Maple..T|his nota|
|00001c70| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 74 6f 20 |tion is |used to |
|00001c80| 73 70 65 63 69 66 79 20 | 74 68 65 20 69 6e 69 74 |specify |the init|
|00001c90| 69 61 6c 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 66 |ial cond|itions f|
|00001ca0| 6f 72 20 74 68 65 0a 5c | 6d 65 78 70 72 7b 64 73 |or the.\|mexpr{ds|
|00001cb0| 6f 6c 76 65 7d 20 70 72 | 6f 63 65 64 75 72 65 2c |olve} pr|ocedure,|
|00001cc0| 20 77 68 69 63 68 20 73 | 6f 6c 76 65 73 20 73 79 | which s|olves sy|
|00001cd0| 73 74 65 6d 73 20 6f 66 | 20 4f 44 45 27 73 2c 0a |stems of| ODE's,.|
|00001ce0| 72 65 70 6c 61 63 69 6e | 67 20 61 6e 20 65 61 72 |replacin|g an ear|
|00001cf0| 6c 69 65 72 20 64 65 66 | 75 6e 63 74 20 6e 6f 74 |lier def|unct not|
|00001d00| 61 74 69 6f 6e 20 24 79 | 70 28 30 29 2c 20 79 70 |ation $y|p(0), yp|
|00001d10| 70 28 30 29 2c 20 5c 6c | 64 6f 74 73 24 0a 49 74 |p(0), \l|dots$.It|
|00001d20| 20 69 73 20 61 6c 73 6f | 20 75 73 65 64 20 69 6e | is also| used in|
|00001d30| 20 73 65 72 69 65 73 3b | 20 66 6f 72 20 65 78 61 | series;| for exa|
|00001d40| 6d 70 6c 65 2c 20 68 65 | 72 65 20 69 73 20 74 68 |mple, he|re is th|
|00001d50| 65 0a 54 61 79 6c 6f 72 | 20 73 65 72 69 65 73 20 |e.Taylor| series |
|00001d60| 66 6f 72 20 61 6e 20 75 | 6e 6b 6e 6f 77 6e 20 66 |for an u|nknown f|
|00001d70| 75 6e 63 74 69 6f 6e 20 | 24 66 24 20 74 6f 20 6f |unction |$f$ to o|
|00001d80| 72 64 65 72 20 24 4f 28 | 78 5e 36 29 24 0a 0a 5c |rder $O(|x^6)$..\|
|00001d90| 62 65 67 69 6e 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |begin{ma|pleinput|
|00001da0| 7d 0a 74 61 79 6c 6f 72 | 28 66 28 78 29 2c 78 29 |}.taylor|(f(x),x)|
|00001db0| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|00001dc0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|00001dd0| 61 74 65 78 7d 0a 5c 62 | 65 67 69 6e 7b 65 71 6e |atex}.\b|egin{eqn|
|00001de0| 61 72 72 61 79 2a 7d 0a | 5c 6c 65 66 74 65 71 6e |array*}.|\lefteqn|
|00001df0| 7b 7b 5c 72 6d 20 66 7d | 28 5c 2c 30 5c 2c 29 20 |{{\rm f}|(\,0\,) |
|00001e00| 2b 20 7b 5c 72 6d 20 44 | 7d 28 5c 2c 7b 66 7d 5c |+ {\rm D|}(\,{f}\|
|00001e10| 2c 29 28 5c 2c 30 5c 2c | 29 5c 2c 7b 78 7d 20 2b |,)(\,0\,|)\,{x} +|
|00001e20| 20 0a 7b 5c 64 69 73 70 | 6c 61 79 73 74 79 6c 65 | .{\disp|laystyle|
|00001e30| 20 5c 66 72 61 63 20 7b | 31 7d 7b 32 7d 7d 5c 2c | \frac {|1}{2}}\,|
|00001e40| 7b 44 7d 5e 7b 28 5c 2c | 32 5c 2c 29 7d 28 5c 2c |{D}^{(\,|2\,)}(\,|
|00001e50| 7b 66 7d 5c 2c 29 28 5c | 2c 30 5c 2c 29 5c 2c 7b |{f}\,)(\|,0\,)\,{|
|00001e60| 78 7d 0a 5e 7b 32 7d 20 | 2b 20 7b 5c 64 69 73 70 |x}.^{2} |+ {\disp|
|00001e70| 6c 61 79 73 74 79 6c 65 | 20 5c 66 72 61 63 20 7b |laystyle| \frac {|
|00001e80| 31 7d 7b 36 7d 7d 5c 2c | 7b 44 7d 5e 7b 28 5c 2c |1}{6}}\,|{D}^{(\,|
|00001e90| 33 5c 2c 29 7d 28 5c 2c | 7b 66 7d 5c 2c 29 28 5c |3\,)}(\,|{f}\,)(\|
|00001ea0| 2c 30 5c 2c 0a 29 5c 2c | 7b 78 7d 5e 7b 33 7d 20 |,0\,.)\,|{x}^{3} |
|00001eb0| 2b 20 7b 5c 64 69 73 70 | 6c 61 79 73 74 79 6c 65 |+ {\disp|laystyle|
|00001ec0| 20 5c 66 72 61 63 20 7b | 31 7d 7b 32 34 7d 7d 5c | \frac {|1}{24}}\|
|00001ed0| 2c 7b 44 7d 5e 7b 28 5c | 2c 34 5c 2c 29 7d 28 5c |,{D}^{(\|,4\,)}(\|
|00001ee0| 2c 7b 66 7d 5c 2c 0a 29 | 28 5c 2c 30 5c 2c 29 5c |,{f}\,.)|(\,0\,)\|
|00001ef0| 2c 7b 78 7d 5e 7b 34 7d | 20 2b 20 7d 20 5c 5c 0a |,{x}^{4}| + } \\.|
|00001f00| 20 26 20 26 20 7b 5c 64 | 69 73 70 6c 61 79 73 74 | & & {\d|isplayst|
|00001f10| 79 6c 65 20 5c 66 72 61 | 63 20 7b 31 7d 7b 31 32 |yle \fra|c {1}{12|
|00001f20| 30 7d 7d 5c 2c 7b 44 7d | 5e 7b 28 5c 2c 35 5c 2c |0}}\,{D}|^{(\,5\,|
|00001f30| 29 7d 28 5c 2c 7b 66 7d | 5c 2c 29 28 5c 2c 30 5c |)}(\,{f}|\,)(\,0\|
|00001f40| 2c 0a 29 5c 2c 7b 78 7d | 5e 7b 35 7d 20 2b 20 7b |,.)\,{x}|^{5} + {|
|00001f50| 5c 72 6d 20 4f 7d 28 5c | 2c 7b 78 7d 5e 7b 36 7d |\rm O}(\|,{x}^{6}|
|00001f60| 5c 2c 29 5c 6d 62 6f 78 | 7b 5c 68 73 70 61 63 65 |\,)\mbox|{\hspace|
|00001f70| 7b 32 30 30 70 74 7d 7d | 0a 5c 65 6e 64 7b 65 71 |{200pt}}|.\end{eq|
|00001f80| 6e 61 72 72 61 79 2a 7d | 0a 5c 65 6e 64 7b 6d 61 |narray*}|.\end{ma|
|00001f90| 70 6c 65 6c 61 74 65 78 | 7d 0a 41 6e 64 20 68 65 |plelatex|}.And he|
|00001fa0| 72 65 20 69 73 20 61 20 | 6d 75 6c 74 69 76 61 72 |re is a |multivar|
|00001fb0| 69 61 74 65 20 54 61 79 | 6c 6f 72 20 73 65 72 69 |iate Tay|lor seri|
|00001fc0| 65 73 20 74 6f 20 74 68 | 69 72 64 20 6f 72 64 65 |es to th|ird orde|
|00001fd0| 72 2e 0a 0a 5c 62 65 67 | 69 6e 7b 6d 61 70 6c 65 |r...\beg|in{maple|
|00001fe0| 69 6e 70 75 74 7d 0a 72 | 65 61 64 6c 69 62 28 6d |input}.r|eadlib(m|
|00001ff0| 74 61 79 6c 6f 72 29 3b | 20 23 20 6c 6f 61 64 20 |taylor);| # load |
|00002000| 74 68 65 20 6d 75 6c 74 | 69 76 61 72 69 61 74 65 |the mult|ivariate|
|00002010| 20 73 65 72 69 65 73 20 | 70 61 63 6b 61 67 65 0a | series |package.|
|00002020| 5c 65 6e 64 7b 6d 61 70 | 6c 65 69 6e 70 75 74 7d |\end{map|leinput}|
|00002030| 0a 5c 62 65 67 69 6e 7b | 6d 61 70 6c 65 74 74 79 |.\begin{|mapletty|
|00002040| 6f 75 74 7d 0a 70 72 6f | 63 28 29 20 2e 2e 2e 20 |out}.pro|c() ... |
|00002050| 65 6e 64 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 74 74 |end.\end|{maplett|
|00002060| 79 6f 75 74 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |yout}.\b|egin{map|
|00002070| 6c 65 69 6e 70 75 74 7d | 0a 6d 74 61 79 6c 6f 72 |leinput}|.mtaylor|
|00002080| 28 66 28 78 2c 79 29 2c | 5b 78 2c 79 5d 2c 33 29 |(f(x,y),|[x,y],3)|
|00002090| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|000020a0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|000020b0| 61 74 65 78 7d 0a 5c 62 | 65 67 69 6e 7b 65 71 6e |atex}.\b|egin{eqn|
|000020c0| 61 72 72 61 79 2a 7d 0a | 5c 6c 65 66 74 65 71 6e |array*}.|\lefteqn|
|000020d0| 7b 7b 5c 72 6d 20 66 7d | 28 5c 2c 30 2c 20 30 5c |{{\rm f}|(\,0, 0\|
|000020e0| 2c 29 20 2b 20 7b 7b 44 | 7d 5f 7b 31 7d 7d 28 5c |,) + {{D|}_{1}}(\|
|000020f0| 2c 7b 66 7d 5c 2c 29 28 | 5c 2c 30 2c 20 30 5c 2c |,{f}\,)(|\,0, 0\,|
|00002100| 29 5c 2c 7b 78 7d 20 2b | 20 0a 7b 7b 44 7d 5f 7b |)\,{x} +| .{{D}_{|
|00002110| 32 7d 7d 28 5c 2c 7b 66 | 7d 5c 2c 29 28 5c 2c 30 |2}}(\,{f|}\,)(\,0|
|00002120| 2c 20 30 5c 2c 29 5c 2c | 7b 79 7d 20 2b 20 7b 5c |, 0\,)\,|{y} + {\|
|00002130| 64 69 73 70 6c 61 79 73 | 74 79 6c 65 20 5c 66 72 |displays|tyle \fr|
|00002140| 61 63 20 7b 31 7d 7b 32 | 7d 7d 0a 5c 2c 7b 7b 44 |ac {1}{2|}}.\,{{D|
|00002150| 7d 5f 7b 31 2c 20 31 7d | 7d 28 5c 2c 7b 66 7d 5c |}_{1, 1}|}(\,{f}\|
|00002160| 2c 29 28 5c 2c 30 2c 20 | 30 5c 2c 29 5c 2c 7b 78 |,)(\,0, |0\,)\,{x|
|00002170| 7d 5e 7b 32 7d 20 2b 20 | 7b 78 7d 5c 2c 7b 7b 44 |}^{2} + |{x}\,{{D|
|00002180| 7d 5f 7b 31 2c 20 32 7d | 7d 28 5c 2c 0a 7b 66 7d |}_{1, 2}|}(\,.{f}|
|00002190| 5c 2c 29 28 5c 2c 30 2c | 20 30 5c 2c 29 5c 2c 7b |\,)(\,0,| 0\,)\,{|
|000021a0| 79 7d 7d 20 5c 5c 0a 20 | 26 20 26 20 5c 6d 62 6f |y}} \\. |& & \mbo|
|000021b0| 78 7b 7d 20 2b 20 7b 5c | 64 69 73 70 6c 61 79 73 |x{} + {\|displays|
|000021c0| 74 79 6c 65 20 5c 66 72 | 61 63 20 7b 31 7d 7b 32 |tyle \fr|ac {1}{2|
|000021d0| 7d 7d 5c 2c 7b 7b 44 7d | 5f 7b 32 2c 20 32 7d 7d |}}\,{{D}|_{2, 2}}|
|000021e0| 28 5c 2c 7b 66 7d 5c 2c | 0a 29 28 5c 2c 30 2c 20 |(\,{f}\,|.)(\,0, |
|000021f0| 30 5c 2c 29 5c 2c 7b 79 | 7d 5e 7b 32 7d 5c 6d 62 |0\,)\,{y|}^{2}\mb|
|00002200| 6f 78 7b 5c 68 73 70 61 | 63 65 7b 32 35 30 70 74 |ox{\hspa|ce{250pt|
|00002210| 7d 7d 0a 5c 65 6e 64 7b | 65 71 6e 61 72 72 61 79 |}}.\end{|eqnarray|
|00002220| 2a 7d 0a 5c 65 6e 64 7b | 6d 61 70 6c 65 6c 61 74 |*}.\end{|maplelat|
|00002230| 65 78 7d 0a 0a 5c 6e 65 | 77 70 61 67 65 0a 57 69 |ex}..\ne|wpage.Wi|
|00002240| 74 68 6f 75 74 20 75 73 | 65 20 6f 66 20 74 68 65 |thout us|e of the|
|00002250| 20 5c 6d 65 78 70 72 7b | 44 7d 20 6f 70 65 72 61 | \mexpr{|D} opera|
|00002260| 74 6f 72 20 69 74 20 77 | 6f 75 6c 64 20 62 65 20 |tor it w|ould be |
|00002270| 64 69 66 66 69 63 75 6c | 74 20 74 6f 20 61 70 70 |difficul|t to app|
|00002280| 6c 79 0a 74 68 65 20 63 | 68 61 69 6e 20 72 75 6c |ly.the c|hain rul|
|00002290| 65 20 74 6f 20 75 6e 6b | 6e 6f 77 6e 20 66 75 6e |e to unk|nown fun|
|000022a0| 63 74 69 6f 6e 73 2e 20 | 20 46 6f 72 20 65 78 61 |ctions. | For exa|
|000022b0| 6d 70 6c 65 2c 20 77 65 | 20 68 61 76 65 0a 0a 5c |mple, we| have..\|
|000022c0| 62 65 67 69 6e 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |begin{ma|pleinput|
|000022d0| 7d 0a 64 69 66 66 28 66 | 28 78 5e 32 29 2c 78 29 |}.diff(f|(x^2),x)|
|000022e0| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|000022f0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|00002300| 61 74 65 78 7d 0a 5c 5b | 0a 32 5c 2c 7b 5c 72 6d |atex}.\[|.2\,{\rm|
|00002310| 20 44 7d 28 5c 2c 7b 66 | 7d 5c 2c 29 28 5c 2c 7b | D}(\,{f|}\,)(\,{|
|00002320| 78 7d 5e 7b 32 7d 5c 2c | 29 5c 2c 7b 78 7d 0a 5c |x}^{2}\,|)\,{x}.\|
|00002330| 5d 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 6c 61 74 65 |].\end{m|aplelate|
|00002340| 78 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 69 |x}.\begi|n{maplei|
|00002350| 6e 70 75 74 7d 0a 64 69 | 66 66 28 66 28 78 5e 32 |nput}.di|ff(f(x^2|
|00002360| 2c 78 2a 79 29 2c 78 29 | 3b 0a 5c 65 6e 64 7b 6d |,x*y),x)|;.\end{m|
|00002370| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 5c 62 65 67 69 |apleinpu|t}.\begi|
|00002380| 6e 7b 6d 61 70 6c 65 6c | 61 74 65 78 7d 0a 5c 5b |n{maplel|atex}.\[|
|00002390| 0a 32 5c 2c 7b 7b 44 7d | 5f 7b 31 7d 7d 28 5c 2c |.2\,{{D}|_{1}}(\,|
|000023a0| 7b 66 7d 5c 2c 29 28 5c | 2c 7b 78 7d 5e 7b 32 7d |{f}\,)(\|,{x}^{2}|
|000023b0| 2c 20 7b 79 7d 5c 2c 7b | 78 7d 5c 2c 29 5c 2c 7b |, {y}\,{|x}\,)\,{|
|000023c0| 78 7d 20 2b 20 7b 7b 44 | 7d 5f 7b 32 7d 7d 28 5c |x} + {{D|}_{2}}(\|
|000023d0| 2c 7b 0a 66 7d 5c 2c 29 | 28 5c 2c 7b 78 7d 5e 7b |,{.f}\,)|(\,{x}^{|
|000023e0| 32 7d 2c 20 7b 79 7d 5c | 2c 7b 78 7d 5c 2c 29 5c |2}, {y}\|,{x}\,)\|
|000023f0| 2c 7b 79 7d 0a 5c 5d 0a | 5c 65 6e 64 7b 6d 61 70 |,{y}.\].|\end{map|
|00002400| 6c 65 6c 61 74 65 78 7d | 0a 5c 62 65 67 69 6e 7b |lelatex}|.\begin{|
|00002410| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 44 28 66 40 |mapleinp|ut}.D(f@|
|00002420| 67 29 3b 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 69 6e |g);.\end|{maplein|
|00002430| 70 75 74 7d 0a 5c 62 65 | 67 69 6e 7b 6d 61 70 6c |put}.\be|gin{mapl|
|00002440| 65 6c 61 74 65 78 7d 0a | 5c 5b 0a 7b 5c 72 6d 20 |elatex}.|\[.{\rm |
|00002450| 44 7d 28 5c 2c 7b 66 7d | 5c 2c 29 7b 5c 72 6d 20 |D}(\,{f}|\,){\rm |
|00002460| 40 7d 7b 67 7d 5c 2c 7b | 5c 72 6d 20 44 7d 28 5c |@}{g}\,{|\rm D}(\|
|00002470| 2c 7b 67 7d 5c 2c 29 0a | 5c 5d 0a 5c 65 6e 64 7b |,{g}\,).|\].\end{|
|00002480| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 54 68 65 72 |maplelat|ex}.Ther|
|00002490| 65 20 61 72 65 20 64 69 | 73 74 69 6e 63 74 20 61 |e are di|stinct a|
|000024a0| 64 76 61 6e 74 61 67 65 | 73 20 74 6f 20 6d 61 6e |dvantage|s to man|
|000024b0| 69 70 75 6c 61 74 69 6e | 67 20 6d 61 70 70 69 6e |ipulatin|g mappin|
|000024c0| 67 73 20 61 73 20 69 66 | 0a 74 68 65 79 20 77 65 |gs as if|.they we|
|000024d0| 72 65 20 65 78 70 72 65 | 73 73 69 6f 6e 73 2e 20 |re expre|ssions. |
|000024e0| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 65 | The fol|lowing e|
|000024f0| 78 61 6d 70 6c 65 20 69 | 6c 6c 75 73 74 72 61 74 |xample i|llustrat|
|00002500| 65 73 20 69 6d 70 6c 69 | 63 69 74 0a 64 69 66 66 |es impli|cit.diff|
|00002510| 65 72 65 6e 74 69 61 74 | 69 6f 6e 20 6f 66 20 24 |erentiat|ion of $|
|00002520| 79 24 20 61 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |y$ as a |function|
|00002530| 20 6f 66 20 24 78 24 2e | 0a 47 69 76 65 6e 20 74 | of $x$.|.Given t|
|00002540| 68 65 20 65 71 75 61 74 | 69 6f 6e 0a 0a 5c 62 65 |he equat|ion..\be|
|00002550| 67 69 6e 7b 6d 61 70 6c | 65 69 6e 70 75 74 7d 0a |gin{mapl|einput}.|
|00002560| 65 71 20 3a 3d 20 79 5e | 32 2a 78 20 2b 20 79 5e |eq := y^|2*x + y^|
|00002570| 33 2a 78 5e 32 20 2b 20 | 79 20 2b 20 33 2a 78 20 |3*x^2 + |y + 3*x |
|00002580| 3d 20 30 3b 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 69 |= 0;.\en|d{maplei|
|00002590| 6e 70 75 74 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |nput}.\b|egin{map|
|000025a0| 6c 65 6c 61 74 65 78 7d | 0a 5c 5b 0a 7b 5c 69 74 |lelatex}|.\[.{\it|
|000025b0| 20 65 71 7d 20 3a 3d 20 | 7b 79 7d 5e 7b 32 7d 5c | eq} := |{y}^{2}\|
|000025c0| 2c 7b 78 7d 20 2b 20 7b | 79 7d 5e 7b 33 7d 5c 2c |,{x} + {|y}^{3}\,|
|000025d0| 7b 78 7d 5e 7b 32 7d 20 | 2b 20 7b 79 7d 20 2b 20 |{x}^{2} |+ {y} + |
|000025e0| 33 5c 2c 7b 78 7d 3d 30 | 0a 5c 5d 0a 5c 65 6e 64 |3\,{x}=0|.\].\end|
|000025f0| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 77 65 20 |{maplela|tex}.we |
|00002600| 63 61 6e 20 72 65 67 61 | 72 64 20 24 78 24 20 61 |can rega|rd $x$ a|
|00002610| 6e 64 20 24 79 24 20 61 | 73 20 61 72 62 69 74 72 |nd $y$ a|s arbitr|
|00002620| 61 72 79 20 6d 61 70 70 | 69 6e 67 73 2e 20 20 54 |ary mapp|ings. T|
|00002630| 68 65 6e 20 61 70 70 6c | 79 69 6e 67 0a 5c 6d 65 |hen appl|ying.\me|
|00002640| 78 70 72 7b 44 7d 20 74 | 6f 20 62 6f 74 68 20 73 |xpr{D} t|o both s|
|00002650| 69 64 65 73 20 6f 66 20 | 74 68 65 20 65 71 75 61 |ides of |the equa|
|00002660| 74 69 6f 6e 20 77 65 20 | 68 61 76 65 0a 0a 5c 62 |tion we |have..\b|
|00002670| 65 67 69 6e 7b 6d 61 70 | 6c 65 69 6e 70 75 74 7d |egin{map|leinput}|
|00002680| 0a 6d 61 70 28 44 2c 65 | 71 29 3b 0a 5c 65 6e 64 |.map(D,e|q);.\end|
|00002690| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 5c 62 65 |{maplein|put}.\be|
|000026a0| 67 69 6e 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |gin{mapl|elatex}.|
|000026b0| 5c 5b 0a 32 5c 2c 7b 5c | 72 6d 20 44 7d 28 5c 2c |\[.2\,{\|rm D}(\,|
|000026c0| 7b 79 7d 5c 2c 29 5c 2c | 7b 79 7d 5c 2c 7b 78 7d |{y}\,)\,|{y}\,{x}|
|000026d0| 20 2b 20 7b 79 7d 5e 7b | 32 7d 5c 2c 7b 5c 72 6d | + {y}^{|2}\,{\rm|
|000026e0| 20 44 7d 28 5c 2c 7b 78 | 7d 5c 2c 29 20 2b 20 33 | D}(\,{x|}\,) + 3|
|000026f0| 5c 2c 0a 7b 5c 72 6d 20 | 44 7d 28 5c 2c 7b 79 7d |\,.{\rm |D}(\,{y}|
|00002700| 5c 2c 29 5c 2c 7b 79 7d | 5e 7b 32 7d 5c 2c 7b 78 |\,)\,{y}|^{2}\,{x|
|00002710| 7d 5e 7b 32 7d 20 2b 20 | 32 5c 2c 7b 79 7d 5e 7b |}^{2} + |2\,{y}^{|
|00002720| 33 7d 5c 2c 7b 5c 72 6d | 20 44 7d 28 5c 2c 7b 78 |3}\,{\rm| D}(\,{x|
|00002730| 7d 5c 2c 29 0a 5c 2c 7b | 78 7d 20 2b 20 7b 5c 72 |}\,).\,{|x} + {\r|
|00002740| 6d 20 44 7d 28 5c 2c 7b | 79 7d 5c 2c 29 20 2b 20 |m D}(\,{|y}\,) + |
|00002750| 33 5c 2c 7b 5c 72 6d 20 | 44 7d 28 5c 2c 7b 78 7d |3\,{\rm |D}(\,{x}|
|00002760| 5c 2c 29 3d 30 0a 5c 5d | 0a 5c 65 6e 64 7b 6d 61 |\,)=0.\]|.\end{ma|
|00002770| 70 6c 65 6c 61 74 65 78 | 7d 0a 54 68 69 73 20 65 |plelatex|}.This e|
|00002780| 71 75 61 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 69 |quation |can be i|
|00002790| 6e 74 65 72 70 72 65 74 | 65 64 20 69 6e 20 6d 61 |nterpret|ed in ma|
|000027a0| 6e 79 20 64 69 66 66 65 | 72 65 6e 74 20 77 61 79 |ny diffe|rent way|
|000027b0| 73 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |s. For |example,|
|000027c0| 0a 69 74 20 63 61 6e 20 | 62 65 20 73 6f 6c 76 65 |.it can |be solve|
|000027d0| 64 20 74 6f 20 6f 62 74 | 61 69 6e 20 61 20 66 6f |d to obt|ain a fo|
|000027e0| 72 6d 75 6c 61 20 66 6f | 72 20 24 44 28 79 29 24 |rmula fo|r $D(y)$|
|000027f0| 0a 5c 62 65 67 69 6e 7b | 6d 61 70 6c 65 69 6e 70 |.\begin{|mapleinp|
|00002800| 75 74 7d 0a 44 28 79 29 | 20 3d 20 73 6f 6c 76 65 |ut}.D(y)| = solve|
|00002810| 28 22 2c 44 28 79 29 29 | 3b 0a 5c 65 6e 64 7b 6d |(",D(y))|;.\end{m|
|00002820| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 5c 62 65 67 69 |apleinpu|t}.\begi|
|00002830| 6e 7b 6d 61 70 6c 65 6c | 61 74 65 78 7d 0a 5c 5b |n{maplel|atex}.\[|
|00002840| 0a 7b 5c 72 6d 20 44 7d | 28 5c 2c 7b 79 7d 5c 2c |.{\rm D}|(\,{y}\,|
|00002850| 29 3d 20 2d 20 5c 2c 7b | 5c 64 69 73 70 6c 61 79 |)= - \,{|\display|
|00002860| 73 74 79 6c 65 20 5c 66 | 72 61 63 20 7b 7b 79 7d |style \f|rac {{y}|
|00002870| 5e 7b 32 7d 5c 2c 7b 5c | 72 6d 20 44 7d 28 5c 2c |^{2}\,{\|rm D}(\,|
|00002880| 7b 78 0a 7d 5c 2c 29 20 | 2b 20 32 5c 2c 7b 79 7d |{x.}\,) |+ 2\,{y}|
|00002890| 5e 7b 33 7d 5c 2c 7b 5c | 72 6d 20 44 7d 28 5c 2c |^{3}\,{\|rm D}(\,|
|000028a0| 7b 78 7d 5c 2c 29 5c 2c | 7b 78 7d 20 2b 20 33 5c |{x}\,)\,|{x} + 3\|
|000028b0| 2c 7b 5c 72 6d 20 44 7d | 28 5c 2c 7b 78 7d 5c 2c |,{\rm D}|(\,{x}\,|
|000028c0| 29 7d 7b 32 0a 5c 2c 7b | 79 7d 5c 2c 7b 78 7d 20 |)}{2.\,{|y}\,{x} |
|000028d0| 2b 20 33 5c 2c 7b 79 7d | 5e 7b 32 7d 5c 2c 7b 78 |+ 3\,{y}|^{2}\,{x|
|000028e0| 7d 5e 7b 32 7d 20 2b 20 | 31 7d 7d 0a 5c 5d 0a 5c |}^{2} + |1}}.\].\|
|000028f0| 65 6e 64 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |end{mapl|elatex}.|
|00002900| 77 68 69 6c 65 20 74 68 | 65 20 69 6e 74 65 72 70 |while th|e interp|
|00002910| 72 65 74 61 74 69 6f 6e | 20 74 68 61 74 20 24 78 |retation| that $x|
|00002920| 24 20 69 73 20 61 6e 20 | 69 6e 64 65 70 65 6e 64 |$ is an |independ|
|00002930| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 20 63 61 6e |ent vari|able can|
|00002940| 0a 62 65 20 69 6e 64 69 | 63 61 74 65 64 20 62 79 |.be indi|cated by|
|00002950| 20 74 68 65 20 73 75 62 | 73 74 69 74 75 74 69 6f | the sub|stitutio|
|00002960| 6e 0a 5c 62 65 67 69 6e | 7b 6d 61 70 6c 65 69 6e |n.\begin|{maplein|
|00002970| 70 75 74 7d 0a 73 75 62 | 73 28 44 28 78 29 3d 31 |put}.sub|s(D(x)=1|
|00002980| 2c 22 29 3b 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 69 |,");.\en|d{maplei|
|00002990| 6e 70 75 74 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |nput}.\b|egin{map|
|000029a0| 6c 65 6c 61 74 65 78 7d | 0a 5c 5b 0a 7b 5c 72 6d |lelatex}|.\[.{\rm|
|000029b0| 20 44 7d 28 5c 2c 7b 79 | 7d 5c 2c 29 3d 20 2d 20 | D}(\,{y|}\,)= - |
|000029c0| 5c 2c 7b 5c 64 69 73 70 | 6c 61 79 73 74 79 6c 65 |\,{\disp|laystyle|
|000029d0| 20 5c 66 72 61 63 20 7b | 7b 79 7d 5e 7b 32 7d 20 | \frac {|{y}^{2} |
|000029e0| 2b 20 32 5c 2c 7b 79 7d | 5e 7b 33 7d 0a 5c 2c 7b |+ 2\,{y}|^{3}.\,{|
|000029f0| 78 7d 20 2b 20 33 7d 7b | 32 5c 2c 7b 79 7d 5c 2c |x} + 3}{|2\,{y}\,|
|00002a00| 7b 78 7d 20 2b 20 33 5c | 2c 7b 79 7d 5e 7b 32 7d |{x} + 3\|,{y}^{2}|
|00002a10| 5c 2c 7b 78 7d 5e 7b 32 | 7d 20 2b 20 31 7d 7d 0a |\,{x}^{2|} + 1}}.|
|00002a20| 5c 5d 0a 5c 65 6e 64 7b | 6d 61 70 6c 65 6c 61 74 |\].\end{|maplelat|
|00002a30| 65 78 7d 0a 0a 45 61 72 | 6c 69 65 72 20 77 65 20 |ex}..Ear|lier we |
|00002a40| 6d 65 6e 74 69 6f 6e 65 | 64 20 74 68 61 74 20 61 |mentione|d that a|
|00002a50| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 66 20 61 20 |pplicati|on of a |
|00002a60| 6d 61 70 70 69 6e 67 20 | 74 6f 20 61 20 73 79 6d |mapping |to a sym|
|00002a70| 62 6f 6c 69 63 0a 76 61 | 72 69 61 62 6c 65 20 79 |bolic.va|riable y|
|00002a80| 69 65 6c 64 73 20 61 20 | 66 6f 72 6d 75 6c 61 2e |ields a |formula.|
|00002a90| 20 20 41 6e 64 20 68 65 | 6e 63 65 20 74 68 65 20 | And he|nce the |
|00002aa0| 69 64 65 6e 74 69 74 79 | 0a 5c 6d 65 78 70 72 7b |identity|.\mexpr{|
|00002ab0| 44 28 66 29 28 78 29 20 | 3d 20 64 69 66 66 28 66 |D(f)(x) |= diff(f|
|00002ac0| 28 78 29 2c 78 29 7d 2e | 20 20 46 6f 72 20 65 78 |(x),x)}.| For ex|
|00002ad0| 61 6d 70 6c 65 0a 0a 5c | 62 65 67 69 6e 7b 6d 61 |ample..\|begin{ma|
|00002ae0| 70 6c 65 69 6e 70 75 74 | 7d 0a 46 20 3a 3d 20 73 |pleinput|}.F := s|
|00002af0| 69 6e 2b 63 6f 73 5e 32 | 3b 0a 5c 65 6e 64 7b 6d |in+cos^2|;.\end{m|
|00002b00| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 5c 62 65 67 69 |apleinpu|t}.\begi|
|00002b10| 6e 7b 6d 61 70 6c 65 6c | 61 74 65 78 7d 0a 5c 5b |n{maplel|atex}.\[|
|00002b20| 0a 7b 46 7d 20 3a 3d 20 | 7b 5c 72 6d 20 73 69 6e |.{F} := |{\rm sin|
|00002b30| 7d 20 2b 20 7b 5c 72 6d | 20 63 6f 73 7d 5e 7b 32 |} + {\rm| cos}^{2|
|00002b40| 7d 0a 5c 5d 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 6c |}.\].\en|d{maplel|
|00002b50| 61 74 65 78 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |atex}.\b|egin{map|
|00002b60| 6c 65 69 6e 70 75 74 7d | 0a 46 28 78 29 3b 0a 5c |leinput}|.F(x);.\|
|00002b70| 65 6e 64 7b 6d 61 70 6c | 65 69 6e 70 75 74 7d 0a |end{mapl|einput}.|
|00002b80| 5c 62 65 67 69 6e 7b 6d | 61 70 6c 65 6c 61 74 65 |\begin{m|aplelate|
|00002b90| 78 7d 0a 5c 5b 0a 7b 5c | 72 6d 20 73 69 6e 7d 28 |x}.\[.{\|rm sin}(|
|00002ba0| 5c 2c 7b 78 7d 5c 2c 29 | 20 2b 20 7b 5c 72 6d 20 |\,{x}\,)| + {\rm |
|00002bb0| 63 6f 73 7d 28 5c 2c 7b | 78 7d 5c 2c 29 5e 7b 32 |cos}(\,{|x}\,)^{2|
|00002bc0| 7d 0a 5c 5d 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 6c |}.\].\en|d{maplel|
|00002bd0| 61 74 65 78 7d 0a 5c 62 | 65 67 69 6e 7b 6d 61 70 |atex}.\b|egin{map|
|00002be0| 6c 65 69 6e 70 75 74 7d | 0a 64 69 66 66 28 46 28 |leinput}|.diff(F(|
|00002bf0| 78 29 2c 78 29 20 2d 20 | 44 28 46 29 28 78 29 3b |x),x) - |D(F)(x);|
|00002c00| 0a 5c 65 6e 64 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |.\end{ma|pleinput|
|00002c10| 7d 0a 5c 62 65 67 69 6e | 7b 6d 61 70 6c 65 6c 61 |}.\begin|{maplela|
|00002c20| 74 65 78 7d 0a 5c 5b 0a | 30 0a 5c 5d 0a 5c 65 6e |tex}.\[.|0.\].\en|
|00002c30| 64 7b 6d 61 70 6c 65 6c | 61 74 65 78 7d 0a 0a 47 |d{maplel|atex}..G|
|00002c40| 69 76 65 6e 20 74 68 65 | 20 66 6f 72 6d 75 6c 61 |iven the| formula|
|00002c50| 2c 20 68 6f 77 20 63 61 | 6e 20 77 65 20 67 65 74 |, how ca|n we get|
|00002c60| 20 62 61 63 6b 20 74 68 | 65 20 6d 61 70 70 69 6e | back th|e mappin|
|00002c70| 67 20 24 46 24 3f 0a 54 | 68 69 73 20 69 73 20 63 |g $F$?.T|his is c|
|00002c80| 61 6c 6c 65 64 20 7b 5c | 65 6d 20 6c 61 6d 62 64 |alled {\|em lambd|
|00002c90| 61 20 61 62 73 74 72 61 | 63 74 69 6f 6e 7d 20 69 |a abstra|ction} i|
|00002ca0| 6e 20 74 68 65 20 6c 61 | 6e 67 75 61 67 65 20 6f |n the la|nguage o|
|00002cb0| 66 20 6c 61 6d 62 64 61 | 20 63 61 6c 63 75 6c 75 |f lambda| calculu|
|00002cc0| 73 2e 0a 49 6e 20 4d 61 | 70 6c 65 20 69 74 20 69 |s..In Ma|ple it i|
|00002cd0| 73 20 63 61 6c 6c 65 64 | 20 5c 6d 65 78 70 72 7b |s called| \mexpr{|
|00002ce0| 75 6e 61 70 70 6c 79 7d | 20 62 65 63 61 75 73 65 |unapply}| because|
|00002cf0| 20 69 74 0a 69 73 20 74 | 68 65 20 69 6e 76 65 72 | it.is t|he inver|
|00002d00| 73 65 20 6f 66 20 61 70 | 70 6c 69 63 61 74 69 6f |se of ap|plicatio|
|00002d10| 6e 2c 20 74 68 61 74 20 | 69 73 2c 20 69 74 20 74 |n, that |is, it t|
|00002d20| 61 6b 65 73 20 61 20 66 | 6f 72 6d 75 6c 61 20 61 |akes a f|ormula a|
|00002d30| 6e 64 20 72 65 74 75 72 | 6e 73 0a 61 20 6d 61 70 |nd retur|ns.a map|
|00002d40| 70 69 6e 67 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |ping. Fo|r exampl|
|00002d50| 65 0a 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 69 |e..\begi|n{maplei|
|00002d60| 6e 70 75 74 7d 0a 47 20 | 3a 3d 20 75 6e 61 70 70 |nput}.G |:= unapp|
|00002d70| 6c 79 28 46 28 78 29 2c | 78 29 3b 0a 5c 65 6e 64 |ly(F(x),|x);.\end|
|00002d80| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 5c 62 65 |{maplein|put}.\be|
|00002d90| 67 69 6e 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |gin{mapl|elatex}.|
|00002da0| 5c 5b 0a 7b 47 7d 20 3a | 3d 20 7b 78 7d 20 5c 72 |\[.{G} :|= {x} \r|
|00002db0| 69 67 68 74 61 72 72 6f | 77 20 7b 5c 72 6d 20 73 |ightarro|w {\rm s|
|00002dc0| 69 6e 7d 28 5c 2c 7b 78 | 7d 5c 2c 29 20 2b 20 7b |in}(\,{x|}\,) + {|
|00002dd0| 5c 72 6d 20 63 6f 73 7d | 28 5c 2c 7b 78 7d 5c 2c |\rm cos}|(\,{x}\,|
|00002de0| 29 5e 7b 32 0a 7d 0a 5c | 5d 0a 5c 65 6e 64 7b 6d |)^{2.}.\|].\end{m|
|00002df0| 61 70 6c 65 6c 61 74 65 | 78 7d 0a 69 73 20 61 20 |aplelate|x}.is a |
|00002e00| 6d 61 70 70 69 6e 67 20 | 69 6e 20 74 68 65 20 66 |mapping |in the f|
|00002e10| 6f 72 6d 20 6f 66 20 61 | 20 4d 61 70 6c 65 20 70 |orm of a| Maple p|
|00002e20| 72 6f 63 65 64 75 72 65 | 20 65 71 75 69 76 61 6c |rocedure| equival|
|00002e30| 65 6e 74 20 74 6f 20 0a | 5c 6d 65 78 70 72 7b 70 |ent to .|\mexpr{p|
|00002e40| 72 6f 63 28 78 29 20 73 | 69 6e 28 78 29 2b 63 6f |roc(x) s|in(x)+co|
|00002e50| 73 28 78 29 5e 32 20 65 | 6e 64 3a 7d 20 65 78 63 |s(x)^2 e|nd:} exc|
|00002e60| 65 70 74 20 69 74 20 68 | 61 73 20 62 65 65 6e 0a |ept it h|as been.|
|00002e70| 64 69 73 70 6c 61 79 65 | 64 20 75 73 69 6e 67 20 |displaye|d using |
|00002e80| 61 20 6d 6f 72 65 20 73 | 75 63 63 69 6e 63 74 20 |a more s|uccinct |
|00002e90| 66 6f 72 6d 61 74 2c 20 | 0a 6b 6e 6f 77 6e 20 61 |format, |.known a|
|00002ea0| 73 20 61 72 72 6f 77 20 | 6f 70 65 72 61 74 6f 72 |s arrow |operator|
|00002eb0| 73 2e 20 20 54 68 65 20 | 61 72 72 6f 77 20 6e 6f |s. The |arrow no|
|00002ec0| 74 61 74 69 6f 6e 20 61 | 62 6f 76 65 20 69 73 20 |tation a|bove is |
|00002ed0| 75 73 65 64 20 6f 66 74 | 65 6e 20 69 6e 20 61 6c |used oft|en in al|
|00002ee0| 67 65 62 72 61 2e 0a 54 | 68 69 73 20 6e 65 77 20 |gebra..T|his new |
|00002ef0| 6e 6f 74 61 74 69 6f 6e | 20 69 73 20 65 73 73 65 |notation| is esse|
|00002f00| 6e 74 69 61 6c 6c 79 20 | 65 71 75 69 76 61 6c 65 |ntially |equivale|
|00002f10| 6e 74 20 74 6f 20 4d 61 | 70 6c 65 27 73 0a 6f 6c |nt to Ma|ple's.ol|
|00002f20| 64 65 72 20 61 6e 67 6c | 65 20 62 72 61 63 6b 65 |der angl|e bracke|
|00002f30| 74 20 6e 6f 74 61 74 69 | 6f 6e 0a 0a 5c 62 65 67 |t notati|on..\beg|
|00002f40| 69 6e 7b 6d 61 70 6c 65 | 69 6e 70 75 74 7d 0a 3c |in{maple|input}.<|
|00002f50| 73 69 6e 28 78 29 2b 63 | 6f 73 28 78 29 5e 32 7c |sin(x)+c|os(x)^2||
|00002f60| 78 3e 3b 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 69 6e |x>;.\end|{maplein|
|00002f70| 70 75 74 7d 0a 5c 62 65 | 67 69 6e 7b 6d 61 70 6c |put}.\be|gin{mapl|
|00002f80| 65 6c 61 74 65 78 7d 0a | 5c 5b 0a 20 5c 6c 61 6e |elatex}.|\[. \lan|
|00002f90| 67 6c 65 20 7b 5c 72 6d | 20 73 69 6e 7d 28 5c 2c |gle {\rm| sin}(\,|
|00002fa0| 7b 78 7d 5c 2c 29 20 2b | 20 7b 5c 72 6d 20 63 6f |{x}\,) +| {\rm co|
|00002fb0| 73 7d 28 5c 2c 7b 78 7d | 5c 2c 29 5e 7b 32 7d 5c |s}(\,{x}|\,)^{2}\|
|00002fc0| 2c 7b 20 5c 6d 69 64 7d | 5c 2c 7b 78 0a 7d 20 5c |,{ \mid}|\,{x.} \|
|00002fd0| 72 61 6e 67 6c 65 20 0a | 5c 5d 0a 5c 65 6e 64 7b |rangle .|\].\end{|
|00002fe0| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 64 69 66 66 |maplelat|ex}.diff|
|00002ff0| 65 72 69 6e 67 20 6f 6e | 6c 79 20 69 6e 20 68 6f |ering on|ly in ho|
|00003000| 77 20 74 68 65 20 70 72 | 6f 63 65 64 75 72 65 20 |w the pr|ocedure |
|00003010| 69 73 20 65 6e 74 65 72 | 65 64 20 61 6e 64 20 64 |is enter|ed and d|
|00003020| 69 73 70 6c 61 79 65 64 | 2e 0a 0a 41 6e 6f 74 68 |isplayed|...Anoth|
|00003030| 65 72 20 6e 6f 74 61 74 | 69 6f 6e 20 66 6f 72 20 |er notat|ion for |
|00003040| 66 75 6e 63 74 69 6f 6e | 73 20 74 68 61 74 20 69 |function|s that i|
|00003050| 73 20 75 73 65 64 20 6f | 66 74 65 6e 20 69 6e 20 |s used o|ften in |
|00003060| 61 70 70 6c 69 65 64 20 | 6d 61 74 68 65 6d 61 74 |applied |mathemat|
|00003070| 69 63 73 0a 69 73 20 74 | 68 65 20 24 46 28 78 29 |ics.is t|he $F(x)|
|00003080| 3d 73 69 6e 28 78 29 2b | 63 6f 73 28 78 29 5e 32 |=sin(x)+|cos(x)^2|
|00003090| 24 20 6e 6f 74 61 74 69 | 6f 6e 2e 20 20 49 6e 20 |$ notati|on. In |
|000030a0| 4d 61 70 6c 65 20 6f 6e | 65 20 6d 69 67 68 74 20 |Maple on|e might |
|000030b0| 75 73 65 0a 5c 6d 65 78 | 70 72 7b 46 28 78 29 3a |use.\mex|pr{F(x):|
|000030c0| 3d 73 69 6e 28 78 29 2b | 63 6f 73 28 78 29 5e 32 |=sin(x)+|cos(x)^2|
|000030d0| 7d 2c 20 62 75 74 20 74 | 68 69 73 20 61 6c 72 65 |}, but t|his alre|
|000030e0| 61 64 79 20 68 61 73 20 | 61 20 6d 65 61 6e 69 6e |ady has |a meanin|
|000030f0| 67 20 69 6e 20 4d 61 70 | 6c 65 20 28 77 68 69 63 |g in Map|le (whic|
|00003100| 68 0a 75 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 20 |h.unfort|unately |
|00003110| 69 73 20 64 69 66 66 65 | 72 65 6e 74 29 20 61 6e |is diffe|rent) an|
|00003120| 64 20 74 68 69 73 20 64 | 6f 65 73 20 6c 65 61 64 |d this d|oes lead|
|00003130| 20 74 6f 20 63 6f 6e 66 | 75 73 69 6f 6e 2e 0a 54 | to conf|usion..T|
|00003140| 68 65 20 6d 65 61 6e 69 | 6e 67 20 6f 66 20 5c 6d |he meani|ng of \m|
|00003150| 65 78 70 72 7b 46 28 78 | 29 3a 3d 79 7d 20 69 73 |expr{F(x|):=y} is|
|00003160| 20 74 6f 20 65 6e 74 65 | 72 20 74 68 65 20 65 6e | to ente|r the en|
|00003170| 74 72 79 20 24 28 78 2c | 79 29 24 20 69 6e 20 24 |try $(x,|y)$ in $|
|00003180| 46 24 27 73 20 72 65 6d | 65 6d 62 65 72 0a 74 61 |F$'s rem|ember.ta|
|00003190| 62 6c 65 20 73 6f 20 74 | 68 61 74 20 77 68 65 6e |ble so t|hat when|
|000031a0| 20 24 46 24 20 69 73 20 | 63 61 6c 6c 65 64 20 77 | $F$ is |called w|
|000031b0| 69 74 68 20 74 68 65 20 | 6c 69 74 65 72 61 6c 20 |ith the |literal |
|000031c0| 73 79 6d 62 6f 6c 0a 24 | 78 24 2c 20 24 79 24 20 |symbol.$|x$, $y$ |
|000031d0| 69 73 20 72 65 74 75 72 | 6e 65 64 2e 20 20 49 74 |is retur|ned. It|
|000031e0| 20 69 73 20 72 61 74 68 | 65 72 20 6c 69 6b 65 20 | is rath|er like |
|000031f0| 6d 61 6b 69 6e 67 20 24 | 46 24 20 77 6f 72 6b 20 |making $|F$ work |
|00003200| 6c 69 6b 65 20 61 20 74 | 61 62 6c 65 0a 6f 66 20 |like a t|able.of |
|00003210| 76 61 6c 75 65 73 2e 0a | 0a 5c 68 65 61 64 69 6e |values..|.\headin|
|00003220| 67 7b 45 71 75 69 76 61 | 6c 65 6e 63 65 20 6f 66 |g{Equiva|lence of|
|00003230| 20 4d 61 70 70 69 6e 67 | 73 7d 0a 0a 4e 6f 74 69 | Mapping|s}..Noti|
|00003240| 63 65 20 74 68 6f 75 67 | 68 2c 20 74 68 61 74 20 |ce thoug|h, that |
|00003250| 5c 6d 65 78 70 72 7b 75 | 6e 61 70 70 6c 79 7d 20 |\mexpr{u|napply} |
|00003260| 64 69 64 20 6e 6f 74 20 | 72 65 74 75 72 6e 20 74 |did not |return t|
|00003270| 68 65 20 6d 61 70 70 69 | 6e 67 0a 69 6e 20 74 68 |he mappi|ng.in th|
|00003280| 65 20 73 61 6d 65 20 7b | 5c 65 6d 20 66 6f 72 6d |e same {|\em form|
|00003290| 7d 20 24 46 24 20 74 68 | 61 74 20 77 65 20 73 74 |} $F$ th|at we st|
|000032a0| 61 72 74 65 64 20 77 69 | 74 68 2e 0a 54 68 69 73 |arted wi|th..This|
|000032b0| 20 72 61 69 73 65 73 20 | 61 6e 6f 74 68 65 72 20 | raises |another |
|000032c0| 71 75 65 73 74 69 6f 6e | 2c 20 6e 61 6d 65 6c 79 |question|, namely|
|000032d0| 2c 20 67 69 76 65 6e 20 | 74 77 6f 20 6d 61 70 70 |, given |two mapp|
|000032e0| 69 6e 67 73 2c 20 68 6f | 77 20 63 6f 75 6c 64 20 |ings, ho|w could |
|000032f0| 6f 6e 65 0a 74 65 73 74 | 20 69 66 20 74 68 65 79 |one.test| if they|
|00003300| 20 61 72 65 20 74 68 65 | 20 73 61 6d 65 3f 20 20 | are the| same? |
|00003310| 55 73 65 72 73 20 61 72 | 65 20 66 61 6d 69 6c 69 |Users ar|e famili|
|00003320| 61 72 20 77 69 74 68 20 | 74 68 65 20 70 72 6f 62 |ar with |the prob|
|00003330| 6c 65 6d 20 6f 66 20 74 | 65 73 74 69 6e 67 0a 77 |lem of t|esting.w|
|00003340| 68 65 74 68 65 72 20 74 | 77 6f 20 66 6f 72 6d 75 |hether t|wo formu|
|00003350| 6c 61 65 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |lae are |the same|
|00003360| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|00003370| 73 75 70 70 6f 73 65 20 | 77 65 20 61 72 65 0a 67 |suppose |we are.g|
|00003380| 69 76 65 6e 20 74 68 65 | 20 74 77 6f 20 66 6f 72 |iven the| two for|
|00003390| 6d 75 6c 61 65 0a 0a 5c | 62 65 67 69 6e 7b 6d 61 |mulae..\|begin{ma|
|000033a0| 70 6c 65 69 6e 70 75 74 | 7d 0a 66 31 20 3a 3d 20 |pleinput|}.f1 := |
|000033b0| 73 69 6e 28 78 29 2b 63 | 6f 73 28 78 29 5e 32 3a |sin(x)+c|os(x)^2:|
|000033c0| 0a 66 32 20 3a 3d 20 73 | 69 6e 28 78 29 2b 63 6f |.f2 := s|in(x)+co|
|000033d0| 73 28 32 2a 78 29 2f 32 | 2b 31 2f 32 3a 0a 5c 65 |s(2*x)/2|+1/2:.\e|
|000033e0| 6e 64 7b 6d 61 70 6c 65 | 69 6e 70 75 74 7d 0a 0a |nd{maple|input}..|
|000033f0| 48 6f 77 20 77 6f 75 6c | 64 20 77 65 20 74 65 73 |How woul|d we tes|
|00003400| 74 20 77 68 65 74 68 65 | 72 20 24 66 5f 31 20 3d |t whethe|r $f_1 =|
|00003410| 20 66 5f 32 24 3f 20 20 | 54 68 69 73 20 69 73 20 | f_2$? |This is |
|00003420| 74 68 65 20 70 72 6f 62 | 6c 65 6d 20 6f 66 0a 73 |the prob|lem of.s|
|00003430| 69 6d 70 6c 69 66 69 63 | 61 74 69 6f 6e 2c 20 6f |implific|ation, o|
|00003440| 72 20 7a 65 72 6f 20 72 | 65 63 6f 67 6e 69 74 69 |r zero r|ecogniti|
|00003450| 6f 6e 2e 0a 49 6e 20 4d | 61 70 6c 65 2c 20 6f 6e |on..In M|aple, on|
|00003460| 65 20 77 6f 75 6c 64 20 | 75 73 65 20 74 68 65 20 |e would |use the |
|00003470| 65 78 70 61 6e 64 20 28 | 6f 72 20 73 69 6d 70 6c |expand (|or simpl|
|00003480| 69 66 79 29 20 66 75 6e | 63 74 69 6f 6e 20 61 73 |ify) fun|ction as|
|00003490| 20 66 6f 6c 6c 6f 77 73 | 0a 0a 5c 62 65 67 69 6e | follows|..\begin|
|000034a0| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 65 78 70 |{maplein|put}.exp|
|000034b0| 61 6e 64 28 66 31 2d 66 | 32 29 3b 0a 5c 65 6e 64 |and(f1-f|2);.\end|
|000034c0| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 5c 62 65 |{maplein|put}.\be|
|000034d0| 67 69 6e 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |gin{mapl|elatex}.|
|000034e0| 5c 5b 0a 30 0a 5c 5d 0a | 5c 65 6e 64 7b 6d 61 70 |\[.0.\].|\end{map|
|000034f0| 6c 65 6c 61 74 65 78 7d | 0a 0a 49 6e 20 74 68 69 |lelatex}|..In thi|
|00003500| 73 20 63 61 73 65 2c 20 | 65 78 70 61 6e 64 20 61 |s case, |expand a|
|00003510| 70 70 6c 69 65 73 20 74 | 68 65 20 74 72 61 6e 73 |pplies t|he trans|
|00003520| 66 6f 72 6d 61 74 69 6f | 6e 20 24 63 6f 73 28 32 |formatio|n $cos(2|
|00003530| 20 78 29 20 3d 20 32 20 | 63 6f 73 28 78 29 5e 32 | x) = 2 |cos(x)^2|
|00003540| 20 2d 20 31 24 0a 68 65 | 6e 63 65 20 72 65 63 6f | - 1$.he|nce reco|
|00003550| 67 6e 69 7a 69 6e 67 20 | 74 68 61 74 20 24 66 5f |gnizing |that $f_|
|00003560| 31 20 3d 20 66 5f 32 24 | 2e 0a 42 75 74 20 77 68 |1 = f_2$|..But wh|
|00003570| 61 74 20 61 62 6f 75 74 | 20 6d 61 70 70 69 6e 67 |at about| mapping|
|00003580| 73 3f 0a 0a 5c 62 65 67 | 69 6e 7b 6d 61 70 6c 65 |s?..\beg|in{maple|
|00003590| 69 6e 70 75 74 7d 0a 65 | 78 70 61 6e 64 28 65 76 |input}.e|xpand(ev|
|000035a0| 61 6c 28 47 29 29 3b 0a | 5c 65 6e 64 7b 6d 61 70 |al(G));.|\end{map|
|000035b0| 6c 65 69 6e 70 75 74 7d | 0a 5c 62 65 67 69 6e 7b |leinput}|.\begin{|
|000035c0| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 5c 5b 0a 7b |maplelat|ex}.\[.{|
|000035d0| 5c 72 6d 20 73 69 6e 7d | 20 2b 20 7b 5c 72 6d 20 |\rm sin}| + {\rm |
|000035e0| 63 6f 73 7d 5e 7b 32 7d | 0a 5c 5d 0a 5c 65 6e 64 |cos}^{2}|.\].\end|
|000035f0| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 0a 45 78 |{maplela|tex}..Ex|
|00003600| 70 61 6e 64 20 74 72 69 | 65 73 20 74 6f 20 77 72 |pand tri|es to wr|
|00003610| 69 74 65 20 61 6e 20 61 | 72 72 6f 77 20 28 6f 72 |ite an a|rrow (or|
|00003620| 20 61 6e 67 6c 65 20 62 | 72 61 63 6b 65 74 29 0a | angle b|racket).|
|00003630| 6f 70 65 72 61 74 6f 72 | 20 61 73 20 61 6e 20 61 |operator| as an a|
|00003640| 6c 67 65 62 72 61 69 63 | 20 63 6f 6d 62 69 6e 61 |lgebraic| combina|
|00003650| 74 69 6f 6e 20 6f 66 20 | 6f 74 68 65 72 20 6d 61 |tion of |other ma|
|00003660| 70 70 69 6e 67 73 2c 20 | 69 6e 20 74 68 69 73 20 |ppings, |in this |
|00003670| 63 61 73 65 0a 61 6c 6c | 6f 77 69 6e 67 20 75 73 |case.all|owing us|
|00003680| 20 74 6f 20 72 65 63 6f | 67 6e 69 7a 65 20 74 68 | to reco|gnize th|
|00003690| 61 74 20 24 46 24 20 61 | 6e 64 20 24 47 24 20 61 |at $F$ a|nd $G$ a|
|000036a0| 72 65 20 65 66 66 65 63 | 74 69 76 65 6c 79 0a 74 |re effec|tively.t|
|000036b0| 68 65 20 73 61 6d 65 20 | 6d 61 70 70 69 6e 67 2e |he same |mapping.|
|000036c0| 0a 0a 5c 62 65 67 69 6e | 7b 6d 61 70 6c 65 69 6e |..\begin|{maplein|
|000036d0| 70 75 74 7d 0a 65 78 70 | 61 6e 64 28 46 2d 65 76 |put}.exp|and(F-ev|
|000036e0| 61 6c 28 47 29 29 3b 0a | 5c 65 6e 64 7b 6d 61 70 |al(G));.|\end{map|
|000036f0| 6c 65 69 6e 70 75 74 7d | 0a 5c 62 65 67 69 6e 7b |leinput}|.\begin{|
|00003700| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 5c 5b 0a 30 |maplelat|ex}.\[.0|
|00003710| 0a 5c 5d 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 6c 61 |.\].\end|{maplela|
|00003720| 74 65 78 7d 0a 0a 4d 61 | 70 6c 65 20 63 61 6e 20 |tex}..Ma|ple can |
|00003730| 64 69 66 66 65 72 65 6e | 74 69 61 74 65 20 74 68 |differen|tiate th|
|00003740| 6f 73 65 20 61 72 72 6f | 77 20 6f 70 65 72 61 74 |ose arro|w operat|
|00003750| 6f 72 73 20 74 6f 6f 2c | 20 65 76 65 6e 0a 69 6e |ors too,| even.in|
|00003760| 20 74 68 65 69 72 20 75 | 6e 65 78 70 61 6e 64 65 | their u|nexpande|
|00003770| 64 20 66 6f 72 6d 2e 0a | 0a 5c 62 65 67 69 6e 7b |d form..|.\begin{|
|00003780| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 44 28 47 29 |mapleinp|ut}.D(G)|
|00003790| 3b 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |;.\end{m|apleinpu|
|000037a0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|000037b0| 61 74 65 78 7d 0a 5c 5b | 0a 7b 78 7d 20 5c 72 69 |atex}.\[|.{x} \ri|
|000037c0| 67 68 74 61 72 72 6f 77 | 20 7b 5c 72 6d 20 63 6f |ghtarrow| {\rm co|
|000037d0| 73 7d 28 5c 2c 7b 78 7d | 5c 2c 29 20 2d 20 32 5c |s}(\,{x}|\,) - 2\|
|000037e0| 2c 7b 5c 72 6d 20 63 6f | 73 7d 28 5c 2c 7b 78 7d |,{\rm co|s}(\,{x}|
|000037f0| 5c 2c 29 5c 2c 7b 5c 72 | 6d 20 0a 73 69 6e 7d 28 |\,)\,{\r|m .sin}(|
|00003800| 5c 2c 7b 78 7d 5c 2c 29 | 0a 5c 5d 0a 5c 65 6e 64 |\,{x}\,)|.\].\end|
|00003810| 7b 6d 61 70 6c 65 6c 61 | 74 65 78 7d 0a 0a 5c 68 |{maplela|tex}..\h|
|00003820| 65 61 64 69 6e 67 7b 4e | 6f 74 61 74 69 6f 6e 61 |eading{N|otationa|
|00003830| 6c 20 45 71 75 69 76 61 | 6c 65 6e 63 65 20 61 6e |l Equiva|lence an|
|00003840| 64 20 43 6f 6e 76 65 72 | 73 69 6f 6e 73 7d 0a 0a |d Conver|sions}..|
|00003850| 54 77 6f 20 69 6d 70 6f | 72 74 61 6e 74 20 69 64 |Two impo|rtant id|
|00003860| 65 6e 74 69 74 69 65 73 | 20 72 65 6c 61 74 69 6e |entities| relatin|
|00003870| 67 20 5c 6d 65 78 70 72 | 7b 44 7d 20 61 6e 64 0a |g \mexpr|{D} and.|
|00003880| 5c 6d 65 78 70 72 7b 64 | 69 66 66 7d 20 61 72 65 |\mexpr{d|iff} are|
|00003890| 20 5c 6d 65 78 70 72 7b | 44 28 66 29 28 78 29 7d | \mexpr{|D(f)(x)}|
|000038a0| 20 3d 20 5c 6d 65 78 70 | 72 7b 64 69 66 66 28 66 | = \mexp|r{diff(f|
|000038b0| 28 78 29 2c 78 29 7d 20 | 28 61 6e 64 20 69 74 73 |(x),x)} |(and its|
|000038c0| 0a 6d 75 6c 74 69 76 69 | 61 74 65 20 63 6f 75 6e |.multivi|ate coun|
|000038d0| 74 65 72 70 61 72 74 29 | 2c 20 61 6e 64 20 5c 6d |terpart)|, and \m|
|000038e0| 65 78 70 72 7b 44 28 66 | 29 7d 20 3d 20 5c 6d 65 |expr{D(f|)} = \me|
|000038f0| 78 70 72 7b 75 6e 61 70 | 70 6c 79 28 64 69 66 66 |xpr{unap|ply(diff|
|00003900| 28 66 28 78 29 2c 78 29 | 29 7d 2e 0a 57 68 65 6e |(f(x),x)|)}..When|
|00003910| 20 74 77 6f 20 6e 6f 74 | 61 74 69 6f 6e 73 20 61 | two not|ations a|
|00003920| 72 65 20 69 6e 76 6f 6c | 76 65 64 20 66 6f 72 20 |re invol|ved for |
|00003930| 65 73 73 65 6e 74 69 61 | 6c 6c 79 20 74 68 65 20 |essentia|lly the |
|00003940| 73 61 6d 65 0a 65 78 70 | 72 65 73 73 69 6f 6e 2c |same.exp|ression,|
|00003950| 20 69 74 20 69 73 20 65 | 73 73 65 6e 74 69 61 6c | it is e|ssential|
|00003960| 20 74 6f 20 62 65 20 61 | 62 6c 65 20 74 6f 20 63 | to be a|ble to c|
|00003970| 6f 6e 76 65 72 74 20 66 | 72 6f 6d 0a 6f 6e 65 20 |onvert f|rom.one |
|00003980| 6e 6f 74 61 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |notation| to the |
|00003990| 6f 74 68 65 72 2e 20 20 | 46 6f 72 20 65 78 61 6d |other. |For exam|
|000039a0| 70 6c 65 0a 0a 5c 62 65 | 67 69 6e 7b 6d 61 70 6c |ple..\be|gin{mapl|
|000039b0| 65 69 6e 70 75 74 7d 0a | 64 69 66 66 28 66 28 78 |einput}.|diff(f(x|
|000039c0| 29 2c 78 29 3b 0a 5c 65 | 6e 64 7b 6d 61 70 6c 65 |),x);.\e|nd{maple|
|000039d0| 69 6e 70 75 74 7d 0a 5c | 62 65 67 69 6e 7b 6d 61 |input}.\|begin{ma|
|000039e0| 70 6c 65 6c 61 74 65 78 | 7d 0a 5c 5b 0a 7b 5c 66 |plelatex|}.\[.{\f|
|000039f0| 72 61 63 20 7b 7b 20 5c | 70 61 72 74 69 61 6c 7d |rac {{ \|partial}|
|00003a00| 7d 7b 7b 20 5c 70 61 72 | 74 69 61 6c 7d 7b 78 7d |}{{ \par|tial}{x}|
|00003a10| 7d 7d 5c 2c 7b 5c 72 6d | 20 66 7d 28 5c 2c 7b 78 |}}\,{\rm| f}(\,{x|
|00003a20| 7d 5c 2c 29 0a 5c 5d 0a | 5c 65 6e 64 7b 6d 61 70 |}\,).\].|\end{map|
|00003a30| 6c 65 6c 61 74 65 78 7d | 0a 5c 62 65 67 69 6e 7b |lelatex}|.\begin{|
|00003a40| 6d 61 70 6c 65 69 6e 70 | 75 74 7d 0a 63 6f 6e 76 |mapleinp|ut}.conv|
|00003a50| 65 72 74 28 22 2c 44 29 | 3b 0a 5c 65 6e 64 7b 6d |ert(",D)|;.\end{m|
|00003a60| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 5c 62 65 67 69 |apleinpu|t}.\begi|
|00003a70| 6e 7b 6d 61 70 6c 65 6c | 61 74 65 78 7d 0a 5c 5b |n{maplel|atex}.\[|
|00003a80| 0a 7b 5c 72 6d 20 44 7d | 28 5c 2c 7b 66 7d 5c 2c |.{\rm D}|(\,{f}\,|
|00003a90| 29 28 5c 2c 7b 78 7d 5c | 2c 29 0a 5c 5d 0a 5c 65 |)(\,{x}\|,).\].\e|
|00003aa0| 6e 64 7b 6d 61 70 6c 65 | 6c 61 74 65 78 7d 0a 5c |nd{maple|latex}.\|
|00003ab0| 62 65 67 69 6e 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |begin{ma|pleinput|
|00003ac0| 7d 0a 75 6e 61 70 70 6c | 79 28 22 2c 78 29 3b 0a |}.unappl|y(",x);.|
|00003ad0| 5c 65 6e 64 7b 6d 61 70 | 6c 65 69 6e 70 75 74 7d |\end{map|leinput}|
|00003ae0| 0a 5c 62 65 67 69 6e 7b | 6d 61 70 6c 65 6c 61 74 |.\begin{|maplelat|
|00003af0| 65 78 7d 0a 5c 5b 0a 7b | 5c 72 6d 20 44 7d 28 5c |ex}.\[.{|\rm D}(\|
|00003b00| 2c 7b 66 7d 5c 2c 29 0a | 5c 5d 0a 5c 65 6e 64 7b |,{f}\,).|\].\end{|
|00003b10| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 0a 5c 68 65 |maplelat|ex}..\he|
|00003b20| 61 64 69 6e 67 7b 41 6c | 67 6f 72 69 74 68 6d 69 |ading{Al|gorithmi|
|00003b30| 63 20 44 69 66 66 65 72 | 65 6e 74 69 61 74 69 6f |c Differ|entiatio|
|00003b40| 6e 7d 0a 0a 54 68 65 20 | 75 73 65 20 6f 66 20 61 |n}..The |use of a|
|00003b50| 72 72 6f 77 20 6f 70 65 | 72 61 74 6f 72 73 2c 20 |rrow ope|rators, |
|00003b60| 6f 72 20 6d 6f 72 65 20 | 67 65 6e 65 72 61 6c 6c |or more |generall|
|00003b70| 79 2c 20 61 72 62 69 74 | 72 61 72 79 20 70 72 6f |y, arbit|rary pro|
|00003b80| 63 65 64 75 72 65 73 0a | 6c 65 61 64 73 20 75 73 |cedures.|leads us|
|00003b90| 20 74 6f 20 74 68 65 20 | 69 6e 74 65 72 65 73 74 | to the |interest|
|00003ba0| 69 6e 67 20 70 72 6f 62 | 6c 65 6d 20 6f 66 20 70 |ing prob|lem of p|
|00003bb0| 72 6f 67 72 61 6d 20 64 | 69 66 66 65 72 65 6e 74 |rogram d|ifferent|
|00003bc0| 69 61 74 69 6f 6e 2e 0a | 43 6f 6e 73 69 64 65 72 |iation..|Consider|
|00003bd0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 24 66 | the fun|ction $f|
|00003be0| 24 20 64 65 66 69 6e 65 | 64 20 62 79 20 74 68 65 |$ define|d by the|
|00003bf0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 4d 61 70 6c 65 | followi|ng Maple|
|00003c00| 20 70 72 6f 63 65 64 75 | 72 65 0a 0a 5c 62 65 67 | procedu|re..\beg|
|00003c10| 69 6e 7b 6d 61 70 6c 65 | 69 6e 70 75 74 7d 0a 72 |in{maple|input}.r|
|00003c20| 65 61 64 20 60 50 44 2e | 6d 60 3a 0a 5c 65 6e 64 |ead `PD.|m`:.\end|
|00003c30| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 5c 62 65 |{maplein|put}.\be|
|00003c40| 67 69 6e 7b 6d 61 70 6c | 65 74 74 79 6f 75 74 7d |gin{mapl|ettyout}|
|00003c50| 0a 45 72 72 6f 72 2c 20 | 63 6f 75 6c 64 20 6e 6f |.Error, |could no|
|00003c60| 74 20 6f 70 65 6e 20 50 | 44 2e 6d 20 66 6f 72 20 |t open P|D.m for |
|00003c70| 72 65 61 64 69 6e 67 0a | 5c 65 6e 64 7b 6d 61 70 |reading.|\end{map|
|00003c80| 6c 65 74 74 79 6f 75 74 | 7d 0a 5c 62 65 67 69 6e |lettyout|}.\begin|
|00003c90| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 66 20 3a |{maplein|put}.f :|
|00003ca0| 3d 20 70 72 6f 63 28 78 | 29 20 6c 6f 63 61 6c 20 |= proc(x|) local |
|00003cb0| 73 2c 74 3b 20 73 20 3a | 3d 20 73 69 6e 28 78 29 |s,t; s :|= sin(x)|
|00003cc0| 3b 20 74 20 3a 3d 20 78 | 5e 32 3b 20 73 2a 74 2b |; t := x|^2; s*t+|
|00003cd0| 32 2a 74 20 65 6e 64 3a | 0a 5c 65 6e 64 7b 6d 61 |2*t end:|.\end{ma|
|00003ce0| 70 6c 65 69 6e 70 75 74 | 7d 0a 0a 5c 76 73 70 61 |pleinput|}..\vspa|
|00003cf0| 63 65 7b 31 6d 6d 7d 0a | 57 68 61 74 20 69 73 20 |ce{1mm}.|What is |
|00003d00| 69 74 73 20 64 65 72 69 | 76 61 74 69 76 65 3f 0a |its deri|vative?.|
|00003d10| 57 65 20 63 6f 75 6c 64 | 20 63 6f 6d 70 75 74 65 |We could| compute|
|00003d20| 20 69 74 73 20 76 61 6c | 75 65 20 61 73 20 61 20 | its val|ue as a |
|00003d30| 66 6f 72 6d 75 6c 61 20 | 61 6e 64 20 64 69 66 66 |formula |and diff|
|00003d40| 65 72 65 6e 74 69 61 74 | 65 0a 74 68 65 20 66 6f |erentiat|e.the fo|
|00003d50| 72 6d 75 6c 61 2e 0a 0a | 5c 62 65 67 69 6e 7b 6d |rmula...|\begin{m|
|00003d60| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 66 28 78 29 3b |apleinpu|t}.f(x);|
|00003d70| 0a 5c 65 6e 64 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |.\end{ma|pleinput|
|00003d80| 7d 0a 5c 62 65 67 69 6e | 7b 6d 61 70 6c 65 6c 61 |}.\begin|{maplela|
|00003d90| 74 65 78 7d 0a 5c 5b 0a | 7b 5c 72 6d 20 73 69 6e |tex}.\[.|{\rm sin|
|00003da0| 7d 28 5c 2c 7b 78 7d 5c | 2c 29 5c 2c 7b 78 7d 5e |}(\,{x}\|,)\,{x}^|
|00003db0| 7b 32 7d 20 2b 20 32 5c | 2c 7b 78 7d 5e 7b 32 7d |{2} + 2\|,{x}^{2}|
|00003dc0| 0a 5c 5d 0a 5c 65 6e 64 | 7b 6d 61 70 6c 65 6c 61 |.\].\end|{maplela|
|00003dd0| 74 65 78 7d 0a 5c 62 65 | 67 69 6e 7b 6d 61 70 6c |tex}.\be|gin{mapl|
|00003de0| 65 69 6e 70 75 74 7d 0a | 64 69 66 66 28 22 2c 78 |einput}.|diff(",x|
|00003df0| 29 3b 0a 5c 65 6e 64 7b | 6d 61 70 6c 65 69 6e 70 |);.\end{|mapleinp|
|00003e00| 75 74 7d 0a 5c 62 65 67 | 69 6e 7b 6d 61 70 6c 65 |ut}.\beg|in{maple|
|00003e10| 6c 61 74 65 78 7d 0a 5c | 5b 0a 7b 5c 72 6d 20 63 |latex}.\|[.{\rm c|
|00003e20| 6f 73 7d 28 5c 2c 7b 78 | 7d 5c 2c 29 5c 2c 7b 78 |os}(\,{x|}\,)\,{x|
|00003e30| 7d 5e 7b 32 7d 20 2b 20 | 32 5c 2c 7b 5c 72 6d 20 |}^{2} + |2\,{\rm |
|00003e40| 73 69 6e 7d 28 5c 2c 7b | 78 7d 5c 2c 29 5c 2c 7b |sin}(\,{|x}\,)\,{|
|00003e50| 78 7d 20 2b 20 34 5c 2c | 7b 78 7d 0a 5c 5d 0a 5c |x} + 4\,|{x}.\].\|
|00003e60| 65 6e 64 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |end{mapl|elatex}.|
|00003e70| 0a 49 6e 20 74 68 65 20 | 4d 61 70 6c 65 20 56 20 |.In the |Maple V |
|00003e80| 53 68 61 72 65 20 4c 69 | 62 72 61 72 79 5c 66 6f |Share Li|brary\fo|
|00003e90| 6f 74 6e 6f 74 65 7b 49 | 6e 66 6f 72 6d 61 74 69 |otnote{I|nformati|
|00003ea0| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 53 68 61 |on about| the Sha|
|00003eb0| 72 65 20 4c 69 62 72 61 | 72 79 0a 69 73 20 69 6e |re Libra|ry.is in|
|00003ec0| 63 6c 75 64 65 64 20 69 | 6e 20 74 68 65 20 7b 5c |cluded i|n the {\|
|00003ed0| 65 6d 20 4e 65 77 73 20 | 61 6e 64 20 41 6e 6e 6f |em News |and Anno|
|00003ee0| 75 6e 63 65 6d 65 6e 74 | 73 7d 20 73 65 63 74 69 |uncement|s} secti|
|00003ef0| 6f 6e 7d 20 74 68 65 72 | 65 20 69 73 20 61 20 66 |on} ther|e is a f|
|00003f00| 61 63 69 6c 69 74 79 20 | 66 6f 72 20 64 69 66 66 |acility |for diff|
|00003f10| 65 72 65 6e 74 69 61 74 | 69 6e 67 0a 70 72 6f 67 |erentiat|ing.prog|
|00003f20| 72 61 6d 73 2e 20 20 54 | 68 65 20 5c 6d 65 78 70 |rams. T|he \mexp|
|00003f30| 72 7b 50 44 7d 20 70 72 | 6f 63 65 64 75 72 65 20 |r{PD} pr|ocedure |
|00003f40| 74 61 6b 65 73 20 61 73 | 20 69 6e 70 75 74 20 61 |takes as| input a|
|00003f50| 20 4d 61 70 6c 65 20 70 | 72 6f 63 65 64 75 72 65 | Maple p|rocedure|
|00003f60| 20 24 66 24 20 77 68 69 | 63 68 0a 69 73 20 61 20 | $f$ whi|ch.is a |
|00003f70| 66 75 6e 63 74 69 6f 6e | 20 6f 66 20 24 6e 24 20 |function| of $n$ |
|00003f80| 70 61 72 61 6d 65 74 65 | 72 73 2c 20 61 6e 64 20 |paramete|rs, and |
|00003f90| 61 20 70 6f 73 69 74 69 | 76 65 20 69 6e 74 65 67 |a positi|ve integ|
|00003fa0| 65 72 20 24 69 24 2c 20 | 61 6e 64 20 69 74 20 72 |er $i$, |and it r|
|00003fb0| 65 74 75 72 6e 73 0a 61 | 20 4d 61 70 6c 65 20 70 |eturns.a| Maple p|
|00003fc0| 72 6f 63 65 64 75 72 65 | 20 77 68 69 63 68 20 63 |rocedure| which c|
|00003fd0| 6f 6d 70 75 74 65 73 20 | 74 68 65 20 70 61 72 74 |omputes |the part|
|00003fe0| 69 61 6c 20 64 65 72 69 | 76 61 74 69 76 65 20 6f |ial deri|vative o|
|00003ff0| 66 20 24 66 24 20 77 69 | 74 68 0a 72 65 73 70 65 |f $f$ wi|th.respe|
|00004000| 63 74 20 74 6f 20 74 68 | 65 20 24 69 5e 7b 74 68 |ct to th|e $i^{th|
|00004010| 7d 24 20 70 61 72 61 6d | 65 74 65 72 2e 0a 46 6f |}$ param|eter..Fo|
|00004020| 72 20 65 78 61 6d 70 6c | 65 0a 0a 5c 62 65 67 69 |r exampl|e..\begi|
|00004030| 6e 7b 6d 61 70 6c 65 69 | 6e 70 75 74 7d 0a 67 20 |n{maplei|nput}.g |
|00004040| 3a 3d 20 50 44 28 66 2c | 31 29 3b 0a 5c 65 6e 64 |:= PD(f,|1);.\end|
|00004050| 7b 6d 61 70 6c 65 69 6e | 70 75 74 7d 0a 5c 62 65 |{maplein|put}.\be|
|00004060| 67 69 6e 7b 6d 61 70 6c | 65 6c 61 74 65 78 7d 0a |gin{mapl|elatex}.|
|00004070| 5c 5b 0a 7b 67 7d 20 3a | 3d 20 7b 5c 72 6d 20 50 |\[.{g} :|= {\rm P|
|00004080| 44 7d 28 5c 2c 7b 66 7d | 2c 20 31 5c 2c 29 0a 5c |D}(\,{f}|, 1\,).\|
|00004090| 5d 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 6c 61 74 65 |].\end{m|aplelate|
|000040a0| 78 7d 0a 44 6f 65 73 20 | 74 68 65 20 70 72 6f 63 |x}.Does |the proc|
|000040b0| 65 64 75 72 65 20 24 67 | 24 20 72 65 61 6c 6c 79 |edure $g|$ really|
|000040c0| 20 63 6f 6d 70 75 74 65 | 20 24 66 27 24 3f 0a 49 | compute| $f'$?.I|
|000040d0| 6e 20 74 68 69 73 20 63 | 61 73 65 20 77 65 20 63 |n this c|ase we c|
|000040e0| 61 6e 20 5c 65 6d 70 68 | 7b 70 72 6f 76 65 7d 20 |an \emph|{prove} |
|000040f0| 74 68 61 74 20 69 74 20 | 64 6f 65 73 20 62 79 20 |that it |does by |
|00004100| 65 78 65 63 75 74 69 6e | 67 20 74 68 65 20 70 72 |executin|g the pr|
|00004110| 6f 63 65 64 75 72 65 0a | 6f 6e 20 73 79 6d 62 6f |ocedure.|on symbo|
|00004120| 6c 69 63 20 70 61 72 61 | 6d 65 74 65 72 73 2c 20 |lic para|meters, |
|00004130| 69 6e 20 65 66 66 65 63 | 74 20 63 6f 6e 76 65 72 |in effec|t conver|
|00004140| 74 69 6e 67 20 74 68 65 | 20 66 75 6e 63 74 69 6f |ting the| functio|
|00004150| 6e 20 72 65 70 72 65 73 | 65 6e 74 65 64 0a 62 79 |n repres|ented.by|
|00004160| 20 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 69 | the pro|cedure i|
|00004170| 6e 74 6f 20 61 20 66 6f | 72 6d 75 6c 61 2e 0a 0a |nto a fo|rmula...|
|00004180| 5c 62 65 67 69 6e 7b 6d | 61 70 6c 65 69 6e 70 75 |\begin{m|apleinpu|
|00004190| 74 7d 0a 64 69 66 66 28 | 66 28 78 29 2c 78 29 20 |t}.diff(|f(x),x) |
|000041a0| 2d 20 67 28 78 29 3b 0a | 5c 65 6e 64 7b 6d 61 70 |- g(x);.|\end{map|
|000041b0| 6c 65 69 6e 70 75 74 7d | 0a 5c 62 65 67 69 6e 7b |leinput}|.\begin{|
|000041c0| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 5c 5b 0a 7b |maplelat|ex}.\[.{|
|000041d0| 5c 72 6d 20 63 6f 73 7d | 28 5c 2c 7b 78 7d 5c 2c |\rm cos}|(\,{x}\,|
|000041e0| 29 5c 2c 7b 78 7d 5e 7b | 32 7d 20 2b 20 32 5c 2c |)\,{x}^{|2} + 2\,|
|000041f0| 7b 5c 72 6d 20 73 69 6e | 7d 28 5c 2c 7b 78 7d 5c |{\rm sin|}(\,{x}\|
|00004200| 2c 29 5c 2c 7b 78 7d 20 | 2b 20 34 5c 2c 7b 78 7d |,)\,{x} |+ 4\,{x}|
|00004210| 0a 20 2d 20 7b 5c 72 6d | 20 50 44 7d 28 5c 2c 7b |. - {\rm| PD}(\,{|
|00004220| 66 7d 2c 20 31 5c 2c 29 | 28 5c 2c 7b 78 7d 5c 2c |f}, 1\,)|(\,{x}\,|
|00004230| 29 0a 5c 5d 0a 5c 65 6e | 64 7b 6d 61 70 6c 65 6c |).\].\en|d{maplel|
|00004240| 61 74 65 78 7d 0a 0a 43 | 6c 65 61 72 6c 79 20 6f |atex}..C|learly o|
|00004250| 6e 65 20 63 6f 75 6c 64 | 6e 27 74 20 64 6f 20 74 |ne could|n't do t|
|00004260| 68 69 73 20 69 66 20 61 | 20 70 72 6f 63 65 64 75 |his if a| procedu|
|00004270| 72 65 20 68 61 64 20 61 | 20 63 6f 6e 64 69 74 69 |re had a| conditi|
|00004280| 6f 6e 61 6c 0a 73 74 61 | 74 65 6d 65 6e 74 20 69 |onal.sta|tement i|
|00004290| 6e 76 6f 6c 76 69 6e 67 | 20 74 68 65 20 66 6f 72 |nvolving| the for|
|000042a0| 6d 61 6c 20 70 61 72 61 | 6d 65 74 65 72 20 24 78 |mal para|meter $x|
|000042b0| 24 20 61 6e 64 20 6f 6e | 65 20 63 61 6c 6c 65 64 |$ and on|e called|
|000042c0| 20 74 68 65 20 70 72 6f | 63 65 64 75 72 65 0a 77 | the pro|cedure.w|
|000042d0| 69 74 68 20 61 20 73 79 | 6d 62 6f 6c 69 63 20 70 |ith a sy|mbolic p|
|000042e0| 61 72 61 6d 65 74 65 72 | 2c 20 20 62 75 74 0a 75 |arameter|, but.u|
|000042f0| 6e 64 65 72 20 77 68 61 | 74 20 63 6f 6e 64 69 74 |nder wha|t condit|
|00004300| 69 6f 6e 73 20 63 6f 75 | 6c 64 20 6f 6e 65 20 64 |ions cou|ld one d|
|00004310| 69 66 66 65 72 65 6e 74 | 69 61 74 65 20 61 20 0a |ifferent|iate a .|
|00004320| 70 72 6f 63 65 64 75 72 | 65 20 69 6e 76 6f 6c 76 |procedur|e involv|
|00004330| 69 6e 67 20 6d 6f 72 65 | 20 74 68 61 6e 20 6a 75 |ing more| than ju|
|00004340| 73 74 20 61 6e 20 65 78 | 70 72 65 73 73 69 6f 6e |st an ex|pression|
|00004350| 3f 0a 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 63 |?.For ex|ample, c|
|00004360| 61 6e 20 74 68 69 73 20 | 62 65 20 64 6f 6e 65 0a |an this |be done.|
|00004370| 69 66 20 74 68 65 20 70 | 72 6f 63 65 64 75 72 65 |if the p|rocedure|
|00004380| 20 68 61 64 20 6c 6f 6f | 70 73 20 6f 72 20 73 75 | had loo|ps or su|
|00004390| 62 72 6f 75 74 69 6e 65 | 20 63 61 6c 6c 73 3f 0a |broutine| calls?.|
|000043a0| 49 74 20 74 75 72 6e 73 | 20 6f 75 74 20 74 68 61 |It turns| out tha|
|000043b0| 74 20 74 68 65 20 61 6e | 73 77 65 72 20 74 6f 20 |t the an|swer to |
|000043c0| 74 68 69 73 20 71 75 65 | 73 74 69 6f 6e 20 69 73 |this que|stion is|
|000043d0| 2c 20 73 75 72 70 72 69 | 73 69 6e 67 6c 79 2c 20 |, surpri|singly, |
|000043e0| 79 65 73 2e 0a 41 6e 64 | 20 6d 6f 72 65 6f 76 65 |yes..And| moreove|
|000043f0| 72 2c 20 74 68 65 72 65 | 20 65 78 69 73 74 73 20 |r, there| exists |
|00004400| 61 20 76 65 72 79 20 73 | 69 6d 70 6c 65 20 61 6c |a very s|imple al|
|00004410| 67 6f 72 69 74 68 6d 20 | 66 6f 72 20 63 6f 6d 70 |gorithm |for comp|
|00004420| 75 74 69 6e 67 20 74 68 | 65 0a 64 65 72 69 76 61 |uting th|e.deriva|
|00004430| 74 69 76 65 20 6f 66 20 | 61 20 70 72 6f 63 65 64 |tive of |a proced|
|00004440| 75 72 65 20 6f 72 20 61 | 20 70 72 6f 67 72 61 6d |ure or a| program|
|00004450| 2e 0a 0a 54 6f 20 63 6f | 6e 73 74 72 75 63 74 20 |...To co|nstruct |
|00004460| 74 68 65 20 64 65 72 69 | 76 61 74 69 76 65 20 70 |the deri|vative p|
|00004470| 72 6f 63 65 64 75 72 65 | 2c 0a 66 6f 72 20 65 61 |rocedure|,.for ea|
|00004480| 63 68 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 73 74 |ch assig|nment st|
|00004490| 61 74 65 6d 65 6e 74 20 | 24 76 20 3a 3d 20 66 28 |atement |$v := f(|
|000044a0| 76 5f 31 2c 20 5c 6c 64 | 6f 74 73 20 2c 20 76 5f |v_1, \ld|ots , v_|
|000044b0| 6e 29 24 20 74 68 61 74 | 20 61 70 70 65 61 72 73 |n)$ that| appears|
|000044c0| 0a 69 6e 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 |.in the |procedur|
|000044d0| 65 2c 20 77 68 65 72 65 | 20 74 68 65 20 24 76 5f |e, where| the $v_|
|000044e0| 69 24 20 61 72 65 20 6c | 6f 63 61 6c 20 76 61 72 |i$ are l|ocal var|
|000044f0| 69 61 62 6c 65 73 20 6f | 72 20 66 6f 72 6d 61 6c |iables o|r formal|
|00004500| 20 70 61 72 61 6d 65 74 | 65 72 73 2c 0a 70 72 65 | paramet|ers,.pre|
|00004510| 63 65 64 65 20 69 74 20 | 62 79 20 24 76 5f 78 20 |cede it |by $v_x |
|00004520| 3a 3d 20 67 28 76 5f 31 | 2c 20 5c 6c 64 6f 74 73 |:= g(v_1|, \ldots|
|00004530| 20 2c 20 76 5f 6e 29 24 | 20 77 68 65 72 65 0a 24 | , v_n)$| where.$|
|00004540| 67 28 76 5f 31 2c 20 5c | 6c 64 6f 74 73 20 2c 20 |g(v_1, \|ldots , |
|00004550| 76 5f 6e 29 24 20 69 73 | 20 6f 62 74 61 69 6e 65 |v_n)$ is| obtaine|
|00004560| 64 20 62 79 20 64 69 66 | 66 65 72 65 6e 74 69 61 |d by dif|ferentia|
|00004570| 74 69 6e 67 20 24 66 28 | 76 5f 31 2c 20 5c 6c 64 |ting $f(|v_1, \ld|
|00004580| 6f 74 73 20 2c 20 76 5f | 6e 29 24 0a 66 6f 72 6d |ots , v_|n)$.form|
|00004590| 61 6c 6c 79 2e 20 20 54 | 68 61 74 20 69 73 2c 20 |ally. T|hat is, |
|000045a0| 24 76 5f 69 24 20 6d 61 | 79 20 64 65 70 65 6e 64 |$v_i$ ma|y depend|
|000045b0| 20 6f 6e 20 24 78 24 2c | 20 68 65 6e 63 65 20 69 | on $x$,| hence i|
|000045c0| 74 73 20 64 65 72 69 76 | 61 74 69 76 65 0a 77 69 |ts deriv|ative.wi|
|000045d0| 6c 6c 20 62 65 20 24 76 | 5f 7b 69 5f 78 7d 24 2e |ll be $v|_{i_x}$.|
|000045e0| 0a 52 65 70 6c 61 63 65 | 20 74 68 65 20 6c 61 73 |.Replace| the las|
|000045f0| 74 20 73 74 61 74 65 6d | 65 6e 74 20 28 6f 72 20 |t statem|ent (or |
|00004600| 61 6e 79 20 52 45 54 55 | 52 4e 20 76 61 6c 75 65 |any RETU|RN value|
|00004610| 29 20 62 79 20 69 74 73 | 20 64 65 72 69 76 61 74 |) by its| derivat|
|00004620| 69 76 65 2e 0a 54 68 69 | 73 20 76 65 72 79 20 73 |ive..Thi|s very s|
|00004630| 69 6d 70 6c 65 20 61 6c | 67 6f 72 69 74 68 6d 20 |imple al|gorithm |
|00004640| 69 73 20 63 61 6c 6c 65 | 64 20 60 60 66 6f 72 77 |is calle|d ``forw|
|00004650| 61 72 64 20 64 69 66 66 | 65 72 65 6e 74 69 61 74 |ard diff|erentiat|
|00004660| 69 6f 6e 27 27 2e 0a 54 | 68 65 72 65 20 69 73 20 |ion''..T|here is |
|00004670| 61 63 74 75 61 6c 6c 79 | 20 71 75 69 74 65 20 61 |actually| quite a|
|00004680| 20 6c 6f 74 20 6f 66 20 | 6c 69 74 65 72 61 74 75 | lot of |literatu|
|00004690| 72 65 20 6f 6e 20 74 68 | 69 73 20 73 75 62 6a 65 |re on th|is subje|
|000046a0| 63 74 2e 20 4d 61 6e 79 | 20 64 69 66 66 65 72 65 |ct. Many| differe|
|000046b0| 6e 74 0a 61 6c 67 6f 72 | 69 74 68 6d 73 2c 20 61 |nt.algor|ithms, a|
|000046c0| 6e 64 20 71 75 69 74 65 | 20 61 20 6e 75 6d 62 65 |nd quite| a numbe|
|000046d0| 72 20 6f 66 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |r of imp|lementat|
|000046e0| 69 6f 6e 73 20 68 61 76 | 65 20 62 65 65 6e 0a 77 |ions hav|e been.w|
|000046f0| 72 69 74 74 65 6e 20 74 | 6f 20 64 69 66 66 65 72 |ritten t|o differ|
|00004700| 65 6e 74 69 61 74 65 20 | 46 6f 72 74 72 61 6e 20 |entiate |Fortran |
|00004710| 63 6f 64 65 2e 0a 46 6f | 72 20 61 20 67 6f 6f 64 |code..Fo|r a good|
|00004720| 20 72 65 66 65 72 65 6e | 63 65 20 73 65 65 20 7b | referen|ce see {|
|00004730| 5c 63 69 74 65 20 7b 50 | 52 4f 43 45 45 44 49 4e |\cite {P|ROCEEDIN|
|00004740| 47 53 7d 7d 2c 20 77 68 | 69 63 68 20 61 6c 73 6f |GS}}, wh|ich also|
|00004750| 20 63 6f 6e 74 61 69 6e | 73 20 61 0a 66 61 69 72 | contain|s a.fair|
|00004760| 6c 79 20 63 6f 6d 70 6c | 65 74 65 20 62 69 62 6c |ly compl|ete bibl|
|00004770| 69 6f 67 72 61 70 68 79 | 20 6f 6e 20 61 6c 67 6f |iography| on algo|
|00004780| 72 69 74 68 6d 69 63 20 | 64 69 66 66 65 72 65 6e |rithmic |differen|
|00004790| 74 69 61 74 69 6f 6e 2e | 0a 0a 48 65 72 65 20 69 |tiation.|..Here i|
|000047a0| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 77 68 69 |s an exa|mple whi|
|000047b0| 63 68 20 69 6c 6c 75 73 | 74 72 61 74 65 73 20 74 |ch illus|trates t|
|000047c0| 68 65 20 70 6f 77 65 72 | 20 6f 66 20 61 6c 67 6f |he power| of algo|
|000047d0| 72 69 74 68 6d 69 63 0a | 64 69 66 66 65 72 65 6e |rithmic.|differen|
|000047e0| 74 69 61 74 69 6f 6e 2e | 0a 49 6e 20 74 68 69 73 |tiation.|.In this|
|000047f0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 75 73 | example|, the us|
|00004800| 65 20 6f 66 20 61 20 6c | 6f 6f 70 20 61 6c 6c 6f |e of a l|oop allo|
|00004810| 77 73 20 75 73 20 74 6f | 20 72 65 70 72 65 73 65 |ws us to| represe|
|00004820| 6e 74 0a 61 20 76 65 72 | 79 20 6c 61 72 67 65 20 |nt.a ver|y large |
|00004830| 66 6f 72 6d 75 6c 61 20 | 69 6e 20 61 20 76 65 72 |formula |in a ver|
|00004840| 79 20 63 6f 6d 70 61 63 | 74 20 77 61 79 2e 0a 54 |y compac|t way..T|
|00004850| 68 65 72 65 20 69 73 20 | 61 20 74 68 65 6f 72 65 |here is |a theore|
|00004860| 74 69 63 61 6c 20 67 61 | 69 6e 20 68 65 72 65 2e |tical ga|in here.|
|00004870| 20 20 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 61 20 | In gen|eral, a |
|00004880| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 63 61 |function| that ca|
|00004890| 6e 0a 62 65 20 72 65 70 | 72 65 73 65 6e 74 65 64 |n.be rep|resented|
|000048a0| 20 62 79 20 61 20 66 6f | 72 6d 75 6c 61 20 63 61 | by a fo|rmula ca|
|000048b0| 6e 20 62 65 20 72 65 70 | 72 65 73 65 6e 74 65 64 |n be rep|resented|
|000048c0| 20 62 79 20 61 20 70 72 | 6f 67 72 61 6d 0a 69 6e | by a pr|ogram.in|
|000048d0| 20 61 6e 20 65 78 70 6f | 6e 65 6e 74 69 61 6c 6c | an expo|nentiall|
|000048e0| 79 20 6d 6f 72 65 20 63 | 6f 6d 70 61 63 74 20 77 |y more c|ompact w|
|000048f0| 61 79 20 62 79 20 75 73 | 69 6e 67 20 6c 6f 63 61 |ay by us|ing loca|
|00004900| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 61 6e 64 20 |l variab|les and |
|00004910| 6c 6f 6f 70 73 2e 0a 0a | 5c 62 65 67 69 6e 7b 6d |loops...|\begin{m|
|00004920| 61 70 6c 65 69 6e 70 75 | 74 7d 0a 66 20 3a 3d 20 |apleinpu|t}.f := |
|00004930| 70 72 6f 63 28 78 2c 6e | 29 20 6c 6f 63 61 6c 20 |proc(x,n|) local |
|00004940| 69 2c 74 3b 0a 20 20 20 | 20 20 74 20 3a 3d 20 78 |i,t;. | t := x|
|00004950| 3b 0a 20 20 20 20 20 66 | 6f 72 20 69 20 74 6f 20 |;. f|or i to |
|00004960| 6e 20 64 6f 20 74 20 3a | 3d 20 6c 6e 28 74 29 20 |n do t :|= ln(t) |
|00004970| 6f 64 3b 0a 20 20 20 20 | 20 74 0a 65 6e 64 3a 0a |od;. | t.end:.|
|00004980| 67 20 3a 3d 20 50 44 28 | 66 2c 31 2c 32 29 3b 20 |g := PD(|f,1,2); |
|00004990| 23 20 63 6f 6d 70 75 74 | 65 20 44 28 44 28 66 29 |# comput|e D(D(f)|
|000049a0| 29 0a 5c 65 6e 64 7b 6d | 61 70 6c 65 69 6e 70 75 |).\end{m|apleinpu|
|000049b0| 74 7d 0a 5c 62 65 67 69 | 6e 7b 6d 61 70 6c 65 6c |t}.\begi|n{maplel|
|000049c0| 61 74 65 78 7d 0a 5c 5b | 0a 7b 67 7d 20 3a 3d 20 |atex}.\[|.{g} := |
|000049d0| 7b 5c 72 6d 20 50 44 7d | 28 5c 2c 7b 66 7d 2c 20 |{\rm PD}|(\,{f}, |
|000049e0| 31 2c 20 32 5c 2c 29 0a | 5c 5d 0a 5c 65 6e 64 7b |1, 2\,).|\].\end{|
|000049f0| 6d 61 70 6c 65 6c 61 74 | 65 78 7d 0a 0a 41 6e 6f |maplelat|ex}..Ano|
|00004a00| 74 68 65 72 20 6e 69 63 | 65 20 74 68 65 6f 72 65 |ther nic|e theore|
|00004a10| 74 69 63 61 6c 20 72 65 | 73 75 6c 74 20 69 73 20 |tical re|sult is |
|00004a20| 74 68 61 74 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |that the| size of|
|00004a30| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 0a 70 | the res|ulting.p|
|00004a40| 72 6f 67 72 61 6d 20 77 | 68 69 63 68 20 63 6f 6d |rogram w|hich com|
|00004a50| 70 75 74 65 73 20 74 68 | 65 20 64 65 72 69 76 61 |putes th|e deriva|
|00004a60| 74 69 76 65 20 69 73 20 | 6c 69 6e 65 61 72 20 69 |tive is |linear i|
|00004a70| 6e 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |n the si|ze of th|
|00004a80| 65 0a 6f 72 69 67 69 6e | 61 6c 20 70 72 6f 67 72 |e.origin|al progr|
|00004a90| 61 6d 2e 20 20 49 6e 20 | 66 61 63 74 2c 20 69 6e |am. In |fact, in|
|00004aa0| 20 6d 6f 73 74 20 63 61 | 73 65 73 2c 20 69 74 20 | most ca|ses, it |
|00004ab0| 69 73 20 6e 6f 74 20 6d | 75 63 68 20 62 69 67 67 |is not m|uch bigg|
|00004ac0| 65 72 2e 0a 57 68 61 74 | 20 63 61 6e 20 61 6c 67 |er..What| can alg|
|00004ad0| 6f 72 69 74 68 6d 69 63 | 20 64 69 66 66 65 72 65 |orithmic| differe|
|00004ae0| 6e 74 69 61 74 69 6f 6e | 20 62 65 20 75 73 65 64 |ntiation| be used|
|00004af0| 20 66 6f 72 3f 0a 49 6e | 20 6e 75 6d 65 72 69 63 | for?.In| numeric|
|00004b00| 61 6c 20 63 6f 6d 70 75 | 74 61 74 69 6f 6e 2c 20 |al compu|tation, |
|00004b10| 6f 6e 65 20 6f 66 74 65 | 6e 20 69 73 20 67 69 76 |one ofte|n is giv|
|00004b20| 65 6e 20 61 20 66 75 6e | 63 74 69 6f 6e 20 24 66 |en a fun|ction $f|
|00004b30| 3a 52 5e 4e 20 5c 72 69 | 67 68 74 61 72 72 6f 77 |:R^N \ri|ghtarrow|
|00004b40| 20 52 24 2c 0a 77 68 65 | 72 65 20 24 66 24 20 69 | R$,.whe|re $f$ i|
|00004b50| 73 20 67 69 76 65 6e 20 | 62 79 20 61 20 70 72 6f |s given |by a pro|
|00004b60| 67 72 61 6d 2c 20 72 61 | 74 68 65 72 20 74 68 61 |gram, ra|ther tha|
|00004b70| 6e 20 61 6e 20 61 6e 61 | 6c 79 74 69 63 20 66 6f |n an ana|lytic fo|
|00004b80| 72 6d 75 6c 61 2e 0a 54 | 68 65 20 73 74 61 6e 64 |rmula..T|he stand|
|00004b90| 61 72 64 20 66 61 73 74 | 20 6d 65 74 68 6f 64 73 |ard fast| methods|
|00004ba0| 20 66 6f 72 20 63 6f 6d | 70 75 74 69 6e 67 20 74 | for com|puting t|
|00004bb0| 68 65 20 7a 65 72 6f 73 | 0a 6f 66 20 24 66 24 20 |he zeros|.of $f$ |
|00004bc0| 6f 72 20 74 68 65 20 65 | 78 74 72 65 6d 61 20 72 |or the e|xtrema r|
|00004bd0| 65 71 75 69 72 65 20 74 | 68 65 20 64 65 72 69 76 |equire t|he deriv|
|00004be0| 61 74 69 76 65 73 20 6f | 66 20 24 66 24 2e 0a 41 |atives o|f $f$..A|
|00004bf0| 6e 20 65 78 61 6d 70 6c | 65 20 69 73 20 67 69 76 |n exampl|e is giv|
|00004c00| 65 6e 20 69 6e 20 74 68 | 65 20 61 72 74 69 63 6c |en in th|e articl|
|00004c10| 65 20 5c 65 6d 70 68 7b | 54 68 65 20 42 69 6c 6c |e \emph{|The Bill|
|00004c20| 69 61 72 64 20 50 72 6f | 62 6c 65 6d 7d 0a 69 6e |iard Pro|blem}.in|
|00004c30| 20 74 68 69 73 20 69 73 | 73 75 65 2c 20 62 79 20 | this is|sue, by |
|00004c40| 57 61 6c 74 65 72 20 47 | 61 6e 64 65 72 20 61 6e |Walter G|ander an|
|00004c50| 64 20 44 6f 6d 69 6e 69 | 6b 20 47 72 75 6e 74 7a |d Domini|k Gruntz|
|00004c60| 2c 20 77 68 65 72 65 20 | 61 20 4e 65 77 74 6f 6e |, where |a Newton|
|00004c70| 0a 69 74 65 72 61 74 69 | 6f 6e 20 69 73 20 75 73 |.iterati|on is us|
|00004c80| 65 64 20 74 6f 20 66 69 | 6e 64 20 74 68 65 20 7a |ed to fi|nd the z|
|00004c90| 65 72 6f 65 73 20 6f 66 | 20 61 20 66 75 6e 63 74 |eroes of| a funct|
|00004ca0| 69 6f 6e 2e 0a 0a 48 65 | 72 65 20 69 73 20 61 6e |ion...He|re is an|
|00004cb0| 6f 74 68 65 72 20 65 78 | 61 6d 70 6c 65 20 77 68 |other ex|ample wh|
|00004cc0| 65 72 65 20 77 65 20 61 | 72 65 20 67 69 76 65 6e |ere we a|re given|
|00004cd0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 77 68 69 63 | a funct|ion whic|
|00004ce0| 68 0a 65 76 61 6c 75 61 | 74 65 73 20 61 20 70 6f |h.evalua|tes a po|
|00004cf0| 6c 79 6e 6f 6d 69 61 6c | 20 69 6e 70 75 74 20 61 |lynomial| input a|
|00004d00| 73 20 61 6e 20 61 72 72 | 61 79 20 6f 66 20 63 6f |s an arr|ay of co|
|00004d10| 65 66 66 69 63 69 65 6e | 74 73 20 75 73 69 6e 67 |efficien|ts using|
|00004d20| 20 48 6f 72 6e 65 72 27 | 73 0a 72 75 6c 65 20 61 | Horner'|s.rule a|
|00004d30| 6e 64 20 77 65 20 63 6f | 6d 70 75 74 65 20 69 74 |nd we co|mpute it|
|00004d40| 73 20 64 65 72 69 76 61 | 74 69 76 65 2e 0a 0a 5c |s deriva|tive...\|
|00004d50| 62 65 67 69 6e 7b 6d 61 | 70 6c 65 69 6e 70 75 74 |begin{ma|pleinput|
|00004d60| 7d 0a 66 20 3a 3d 20 70 | 72 6f 63 28 78 2c 62 2c |}.f := p|roc(x,b,|
|00004d70| 6e 29 20 6c 6f 63 61 6c | 20 69 2c 73 3b 0a 20 20 |n) local| i,s;. |
|00004d80| 20 20 23 20 74 68 65 20 | 61 72 72 61 79 20 62 20 | # the |array b |
|00004d90| 72 65 70 72 65 73 65 6e | 74 73 20 74 68 65 20 70 |represen|ts the p|
|00004da0| 6f 6c 79 6e 6f 6d 69 61 | 6c 20 62 20 3d 20 73 75 |olynomia|l b = su|
|00004db0| 6d 28 20 62 5b 69 5d 2a | 78 5e 69 2c 20 69 3d 30 |m( b[i]*|x^i, i=0|
|00004dc0| 2e 2e 6e 20 29 0a 20 20 | 20 20 73 20 3a 3d 20 30 |..n ). | s := 0|
|00004dd0| 3b 0a 20 20 20 20 66 6f | 72 20 69 20 66 72 6f 6d |;. fo|r i from|
|00004de0| 20 6e 20 62 79 20 2d 31 | 20 74 6f 20 30 20 64 6f | n by -1| to 0 do|
|00004df0| 20 73 20 3a 3d 20 73 2a | 78 2b 62 5b 69 5d 3b 20 | s := s*|x+b[i]; |
|00004e00| 6f 64 3b 0a 20 20 20 20 | 73 0a 65 6e 64 3a 0a 67 |od;. |s.end:.g|
|00004e10| 20 3a 3d 20 50 44 28 66 | 2c 31 29 3b 0a 5c 65 6e | := PD(f|,1);.\en|
|00004e20| 64 7b 6d 61 70 6c 65 69 | 6e 70 75 74 7d 0a 5c 62 |d{maplei|nput}.\b|
|00004e30| 65 67 69 6e 7b 6d 61 70 | 6c 65 6c 61 74 65 78 7d |egin{map|lelatex}|
|00004e40| 0a 5c 5b 0a 7b 67 7d 20 | 3a 3d 20 7b 5c 72 6d 20 |.\[.{g} |:= {\rm |
|00004e50| 50 44 7d 28 5c 2c 7b 66 | 7d 2c 20 31 5c 2c 29 0a |PD}(\,{f|}, 1\,).|
|00004e60| 5c 5d 0a 5c 65 6e 64 7b | 6d 61 70 6c 65 6c 61 74 |\].\end{|maplelat|
|00004e70| 65 78 7d 0a 0a 49 74 20 | 6d 61 79 20 6e 6f 74 20 |ex}..It |may not |
|00004e80| 62 65 20 61 70 70 61 72 | 65 6e 74 20 66 72 6f 6d |be appar|ent from|
|00004e90| 20 74 68 65 73 65 20 65 | 78 61 6d 70 6c 65 73 2c | these e|xamples,|
|00004ea0| 20 62 75 74 20 74 68 65 | 20 64 69 66 66 69 63 75 | but the| difficu|
|00004eb0| 6c 74 0a 70 61 72 74 20 | 6f 66 20 61 6c 67 6f 72 |lt.part |of algor|
|00004ec0| 69 74 68 6d 69 63 20 64 | 69 66 66 65 72 65 6e 74 |ithmic d|ifferent|
|00004ed0| 69 61 74 69 6f 6e 20 69 | 73 20 70 72 6f 67 72 61 |iation i|s progra|
|00004ee0| 6d 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 2e 0a |m optimi|zation..|
|00004ef0| 54 68 69 73 20 69 73 20 | 62 65 63 61 75 73 65 20 |This is |because |
|00004f00| 64 69 66 66 65 72 65 6e | 74 69 61 74 69 6f 6e 20 |differen|tiation |
|00004f10| 70 72 6f 64 75 63 65 73 | 20 72 65 64 75 6e 64 61 |produces| redunda|
|00004f20| 6e 74 20 63 6f 6d 70 75 | 74 61 74 69 6f 6e 2e 0a |nt compu|tation..|
|00004f30| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 72 65 70 |For exam|ple, rep|
|00004f40| 65 61 74 65 64 6c 79 20 | 64 69 66 66 65 72 65 6e |eatedly |differen|
|00004f50| 74 69 61 74 69 6e 67 20 | 66 6f 72 6d 75 6c 61 65 |tiating |formulae|
|00004f60| 20 72 65 73 75 6c 74 73 | 20 69 6e 0a 6c 6f 74 73 | results| in.lots|
|00004f70| 20 6f 66 20 72 65 70 65 | 61 74 65 64 20 63 6f 6d | of repe|ated com|
|00004f80| 6d 6f 6e 20 73 75 62 65 | 78 70 72 65 73 73 69 6f |mon sube|xpressio|
|00004f90| 6e 73 2e 20 20 41 6e 64 | 2c 20 77 68 65 6e 20 63 |ns. And|, when c|
|00004fa0| 6f 6d 70 75 74 69 6e 67 | 20 70 61 72 74 69 61 6c |omputing| partial|
|00004fb0| 0a 64 65 72 69 76 61 74 | 69 76 65 73 2c 20 61 20 |.derivat|ives, a |
|00004fc0| 6c 6f 74 20 6f 66 20 7a | 65 72 6f 65 73 20 6d 61 |lot of z|eroes ma|
|00004fd0| 79 20 72 65 73 75 6c 74 | 2e 0a 54 68 75 73 20 74 |y result|..Thus t|
|00004fe0| 77 6f 20 6f 66 20 74 68 | 65 20 6d 61 69 6e 20 66 |wo of th|e main f|
|00004ff0| 6f 63 75 73 65 73 20 6f | 66 20 61 6c 67 6f 72 69 |ocuses o|f algori|
|00005000| 74 68 6d 69 63 20 64 69 | 66 66 65 72 65 6e 74 69 |thmic di|fferenti|
|00005010| 61 74 69 6f 6e 20 69 73 | 0a 74 6f 20 61 76 6f 69 |ation is|.to avoi|
|00005020| 64 20 61 73 20 6d 75 63 | 68 20 6f 66 20 74 68 69 |d as muc|h of thi|
|00005030| 73 20 72 65 64 75 6e 64 | 61 6e 63 79 20 61 73 20 |s redund|ancy as |
|00005040| 70 6f 73 73 69 62 6c 65 | 20 61 6e 64 20 0a 64 6f |possible| and .do|
|00005050| 20 70 72 6f 67 72 61 6d | 20 6f 70 74 69 6d 69 7a | program| optimiz|
|00005060| 61 74 69 6f 6e 2e 0a 57 | 65 20 61 72 65 20 70 72 |ation..W|e are pr|
|00005070| 65 73 65 6e 74 6c 79 20 | 77 6f 72 6b 69 6e 67 20 |esently |working |
|00005080| 6f 6e 20 65 78 74 65 6e | 64 69 6e 67 20 4d 61 70 |on exten|ding Map|
|00005090| 6c 65 27 73 20 63 61 70 | 61 62 69 6c 69 74 69 65 |le's cap|abilitie|
|000050a0| 73 20 66 6f 72 0a 64 69 | 66 66 65 72 65 6e 74 69 |s for.di|fferenti|
|000050b0| 61 74 69 6e 67 20 70 72 | 6f 63 65 64 75 72 65 73 |ating pr|ocedures|
|000050c0| 20 74 6f 20 63 6f 6d 70 | 75 74 65 20 67 72 61 64 | to comp|ute grad|
|000050d0| 69 65 6e 74 73 20 61 6e | 64 20 6a 61 63 6f 62 69 |ients an|d jacobi|
|000050e0| 61 6e 73 2c 0a 61 6e 64 | 20 69 6d 70 72 6f 76 69 |ans,.and| improvi|
|000050f0| 6e 67 20 74 68 65 20 6f | 70 74 69 6d 69 7a 61 74 |ng the o|ptimizat|
|00005100| 69 6f 6e 20 6f 66 20 74 | 68 65 20 72 65 73 75 6c |ion of t|he resul|
|00005110| 74 69 6e 67 20 70 72 6f | 63 65 64 75 72 65 73 2e |ting pro|cedures.|
|00005120| 0a 0a 5c 62 65 67 69 6e | 7b 74 68 65 62 69 62 6c |..\begin|{thebibl|
|00005130| 69 6f 67 72 61 70 68 79 | 7d 7b 31 30 7d 0a 0a 5c |iography|}{10}..\|
|00005140| 62 69 62 69 74 65 6d 7b | 4d 55 43 38 34 7d 0a 4d |bibitem{|MUC84}.M|
|00005150| 69 63 68 61 65 6c 20 57 | 65 73 74 65 72 20 61 6e |ichael W|ester an|
|00005160| 64 20 53 74 61 6e 6c 79 | 20 53 74 65 69 6e 62 65 |d Stanly| Steinbe|
|00005170| 72 67 2c 0a 41 20 53 75 | 72 76 65 79 20 6f 66 20 |rg,.A Su|rvey of |
|00005180| 53 79 6d 62 6f 6c 69 63 | 20 44 69 66 66 65 72 65 |Symbolic| Differe|
|00005190| 6e 74 69 61 74 69 6f 6e | 20 49 6d 70 6c 65 6d 65 |ntiation| Impleme|
|000051a0| 6e 74 61 74 69 6f 6e 73 | 2c 0a 5c 65 6d 70 68 7b |ntations|,.\emph{|
|000051b0| 50 72 6f 63 65 65 64 69 | 6e 67 73 20 6f 66 20 74 |Proceedi|ngs of t|
|000051c0| 68 65 20 31 39 38 34 20 | 4d 41 43 53 59 4d 41 20 |he 1984 |MACSYMA |
|000051d0| 55 73 65 72 73 27 20 43 | 6f 6e 66 65 72 65 6e 63 |Users' C|onferenc|
|000051e0| 65 7d 2c 0a 53 63 68 65 | 6e 65 63 74 61 64 79 20 |e},.Sche|nectady |
|000051f0| 4e 59 2c 20 28 31 39 38 | 34 29 2e 0a 0a 5c 62 69 |NY, (198|4)...\bi|
|00005200| 62 69 74 65 6d 7b 4f 50 | 45 52 41 54 4f 52 53 7d |bitem{OP|ERATORS}|
|00005210| 0a 47 61 73 74 6f 6e 20 | 47 6f 6e 6e 65 74 2c 0a |.Gaston |Gonnet,.|
|00005220| 41 6e 20 49 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |An Imple|mentatio|
|00005230| 6e 20 6f 66 20 4f 70 65 | 72 61 74 6f 72 73 20 66 |n of Ope|rators f|
|00005240| 6f 72 20 53 79 6d 62 6f | 6c 69 63 20 41 6c 67 65 |or Symbo|lic Alge|
|00005250| 62 72 61 20 53 79 73 74 | 65 6d 73 2c 0a 5c 65 6d |bra Syst|ems,.\em|
|00005260| 70 68 7b 50 72 6f 63 65 | 65 64 69 6e 67 73 20 6f |ph{Proce|edings o|
|00005270| 66 20 74 68 65 20 31 39 | 38 36 20 53 79 6d 70 6f |f the 19|86 Sympo|
|00005280| 73 69 75 6d 20 6f 6e 20 | 53 79 6d 62 6f 6c 69 63 |sium on |Symbolic|
|00005290| 20 61 6e 64 20 41 6c 67 | 65 62 72 61 69 63 20 43 | and Alg|ebraic C|
|000052a0| 6f 6d 70 75 74 61 74 69 | 6f 6e 73 7d 2c 0a 53 79 |omputati|ons},.Sy|
|000052b0| 6d 73 61 63 20 60 38 36 | 2c 20 41 43 4d 2c 20 28 |msac `86|, ACM, (|
|000052c0| 31 39 38 36 29 2e 0a 0a | 5c 62 69 62 69 74 65 6d |1986)...|\bibitem|
|000052d0| 7b 50 52 4f 43 45 45 44 | 49 4e 47 53 7d 0a 41 75 |{PROCEED|INGS}.Au|
|000052e0| 74 6f 6d 61 74 69 63 20 | 44 69 66 66 65 72 65 6e |tomatic |Differen|
|000052f0| 74 69 61 74 69 6f 6e 20 | 6f 66 20 41 6c 67 6f 72 |tiation |of Algor|
|00005300| 69 74 68 6d 73 3a 20 54 | 68 65 6f 72 79 2c 20 49 |ithms: T|heory, I|
|00005310| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 0a 61 6e |mplement|ation.an|
|00005320| 64 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 53 |d Applic|ation, S|
|00005330| 49 41 4d 2c 20 50 68 69 | 6c 61 64 65 6c 70 68 69 |IAM, Phi|ladelphi|
|00005340| 61 20 31 39 39 31 2e 0a | 5c 74 65 78 74 69 74 7b |a 1991..|\textit{|
|00005350| 50 72 6f 63 65 65 64 69 | 6e 67 73 20 6f 66 20 74 |Proceedi|ngs of t|
|00005360| 68 65 20 53 49 41 4d 20 | 57 6f 72 6b 73 68 6f 70 |he SIAM |Workshop|
|00005370| 20 6f 6e 20 41 75 74 6f | 6d 61 74 69 63 20 44 69 | on Auto|matic Di|
|00005380| 66 66 65 72 65 6e 74 69 | 61 74 69 6f 6e 7d 2c 0a |fferenti|ation},.|
|00005390| 42 72 65 63 6b 65 6e 72 | 69 64 67 65 2c 20 43 4f |Breckenr|idge, CO|
|000053a0| 2c 20 28 31 39 39 31 29 | 2e 0a 0a 5c 65 6e 64 7b |, (1991)|...\end{|
|000053b0| 74 68 65 62 69 62 6c 69 | 6f 67 72 61 70 68 79 7d |thebibli|ography}|
|000053c0| 0a 0a 5c 65 6e 64 7b 64 | 6f 63 75 6d 65 6e 74 7d |..\end{d|ocument}|
|000053d0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+